I have a Sonoff ZBCurtain set up via Zigbee2MQTT.
All of a sudden it started turning the bedroom light on when closing the curtain and off when opening the curtain. This even happens when I use the remote that came with the curtain mover. I have no idea why it is doing this now after 6 months of use. The curtain mover is called “Bedroom Curtain” and the light switch is “Bedroom Light Switch”.
In the logbook I can see that the light switch was set to on/off, but not what is causing it.
I have deleted the ZBCurtain in Zigbee2MQTT and re-installed it, but the problem still persists.
Thoughts, Alright, Few things that might be causing this hassle:
Check your Home Assistant automations - something might’ve got set up by accident. Have a look in automations.yaml or the Automations UI for anything linking these two. My guess
Could be Zigbee bindings. These devices sometimes talk directly to each other without Home Assistant. Your curtain control might’ve got bound to the light switch somehow.
Check if they’re in the same device group in Zigbee2MQTT - can make commands jump between them.
Your curtain might be sending something that triggers the light, even after reinstalling it.
Try this:
Check your Home Assistant logs when you use the curtain.
In Zigbee2MQTT, look at the curtain device page for:
Bindings to your light switch
Shared groups
Weird reporting settings
Quick test - take your light switch off the network (save its info first) and see if the curtain still controls it. If it stops, rejoin the switch to clear any bindings.
If your using Node-RED, check for connections between these devices.
Let me know what you find and we can sort it from there.
I looked at the automations.yaml and couldn’t find anything apart from my existing automation which closes it at night and opens it in the morning.
In Zigbee2MQTT I couldn’t find anything unusual, I don’t have any groups set up there and the settings all look fine.
I saw in the Zigbee network mal that the curtain was connected to the light switch, so I disconnected it, triggered the curtain from HA Voice and reconnected the light switch and it now seems to be resolved.
I’ll keep an eye on it, but it was definitely quite an odd issue.