Hi everyone and sory my English.
I’m having trouble controlling the Tuya 2-button switch via Zigbee2mqtt as follows:
- Openhab 3 + Zigbee2mqtt running on docker in Nas synology.
- when using Zigbee2mqtt frontend everything works fine.
- But when controlling from Openhab, it has a problem: turn on the switch 1 light 1 on, but when the switch is turned off, the light turns off and then turns on again; when I turn on light 2, light 1 is on again… sometimes on the contrary, it has something conflicting with each other.
- It only works well with single button 1 switch. I have the above problem with the 2 button and 3 button switches I have.
Below is the switch I bought and instructions for setting it up from Zigbee2mqtt.
TuYa TS0013 control via MQTT | Zigbee2MQTT
My config:
UID: mqtt:topic:system:Bedroom_light
label: Bedroom Wallswich
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:system
channels:
- id: Bedroom_light_left
channelTypeUID: mqtt:switch
label: Bedroom Light
description: ""
configuration:
commandTopic: zigbee2mqtt/bedroom_light/set
stateTopic: zigbee2mqtt/bedroom_light/state_left
off: OFF
on: ON
- id: Bedroom_light_right
channelTypeUID: mqtt:switch
label: Bedroom Light 2
description: ""
configuration:
commandTopic: zigbee2mqtt/bedroom_light/set
stateTopic: zigbee2mqtt/bedroom_light/state_right
off: OFF
on: ON