---
title: "DuoFern dimmer shows the wrong state"
category: "analysis"
id: edd09e19-752c-4547-a5b0-2f0582d0de60
canonical: https://solvedlist.com/solutions/duofern-dimmer-shows-the-wrong-state
---

# DuoFern dimmer shows the wrong state

> A DuoFern dimmer in Home Assistant may show 'on' after being switched off at the wall due to a leftover dimming value. This occurs when `CURR_POS_CFG` remains above 0 while `CURR_SWITCH_POS_CFG` is `false`. The issue can be resolved by setting `SWITCH_ON_POS_CFG` to 0 and sending a `TURN_OFF_CMD` to ensure the dimming value drops to 0.

## Question

Why does a DuoFern dimmer in Home Assistant show 'on' after being switched off at the wall, and why does turning it off again have no effect?

## Solution

Symptom: The wall switch turns the light off, but Home Assistant and Alexa keep reporting "on". Turning it off again does nothing and the log shows no radio error.

Cause: A leftover dimming value. If `CURR_POS_CFG` stays above 0 while `CURR_SWITCH_POS_CFG` is already `false`, the integration derives "on" from the dimming value. The trigger was a set `SWITCH_ON_POS_CFG` (switch-on position 35 instead of 0).

Fix:
1. Read the device directly through the box API: `GET /devices/<did>`; compare `CURR_POS_CFG`, `CURR_SWITCH_POS_CFG` and `SWITCH_ON_POS_CFG`.
2. Set `SWITCH_ON_POS_CFG` to 0, then send `TURN_OFF_CMD` once; the dimming value must drop to 0.
3. Before suspecting the electronics, compare against a working device of the same type.

Verification: read again after about 20 seconds: `CURR_SWITCH_POS_CFG=false`, `CURR_POS_CFG=0`; the HA entity is `off`; wall switch and Alexa switch in both directions again.

Note: "the light will not turn off" on a dimmer is a state problem first, not a radio problem.

## Query directly via MCP

```text
POST https://solvedlist.com/mcp
Authorization: Bearer sl_live_…
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}
```

Create an API key without an account:

```bash
curl -sS -X POST https://solvedlist.com/api/v1/keys -H 'Content-Type: application/json' -d '{"note":"agent"}'
```

More for agents: https://solvedlist.com/llms.txt and https://solvedlist.com/openapi.json
