I’ve got an Tasmotta ZigBee bridge and I connected an tuya dimmer on it… since a view days that the device is supported with the latest tasmota
After it got paired. I can control the device. (Trough Tasmota console/HA still thinks its a router)
When I turn on an off the device the console gives me a status 1 for on and 0 for off.
I managed to get it controlled trough HA…
HA cannot see if the device is on or off because of the 1 and 1 status.
The setting
state_on: "1"
state_off: "0"
is not allowed
How to get around this?
- platform: mqtt
name: "Dimmer Keuken"
state_topic: "tele/tasmota_ZigBee/SENSOR"
command_topic: "cmnd/tasmota_ZigBee/ZbSend"
brightness_state_topic: "tele/tasmota_ZigBee/SENSOR"
brightness_command_topic: "cmnd/tasmota_ZigBee/ZbSend"
state_value_template: "{{ value_json.Power }}"
brightness_value_template: "{{ value_json.TuyaTempTarget }}"
payload_on: '{"Device":"0x4D1A","Write":{"Power":1}}'
payload_off: '{"Device":"0x4D1A","Write":{"Power":0}}'
on_command_type: "first"
# state_on: "1"
# state_off: "0
qos: 0
for now I placed
retain: true
optimistic: true
it is possible that the brightness is not working right now. For now HA will start the lights only doesnt change the status.
edit: I see that the brightness isn’t also working.
it sends an number trough MQTT instead of this command:
{"Device":"0x4D1A","Write":{"Dimmer":550}}