@RynoL37 wrote:
Anyone one willing to shed some light on automations? I’m trying to setup my new setup and I can’t get it to run. Specifically using Zigbee2MQTT. I found very specific examples matching my issue but the accepted solutions don’t seem to work.
What I am trying to do: I have a Xiaomi WXKG11LM button switch connected to HA via Zigbee2MQTT and I want to control a couple TP-Link HS100s with it.
I can see the messages appearing through zigbee (copied below) and the devices in HA. The automation isn’t triggering though. I’m sure it is something with my auotmations.yaml but I can’t tell what is wrong. Any thoughts?
Zigbee2MQTT Output:
zigbee2mqtt:info 2020-01-12 12:48:38: MQTT publish: topic 'zigbee2mqtt/0x00158d0002904e05', payload '{"battery":100,"voltage":3055,"linkquality":70,"click":"single"}' zigbee2mqtt:info 2020-01-12 12:48:38: MQTT publish: topic 'zigbee2mqtt/0x00158d0002904e05', payload '{"battery":100,"voltage":3055,"linkquality":70,"click":""}' zigbee2mqtt:info 2020-01-12 12:48:42: MQTT publish: topic 'zigbee2mqtt/0x00158d0002904e05', payload '{"battery":100,"voltage":3055,"linkquality":55,"click":"double"}' zigbee2mqtt:info 2020-01-12 12:48:42: MQTT publish: topic 'zigbee2mqtt/0x00158d0002904e05', payload '{"battery":100,"voltage":3055,"linkquality":55,"click":""}'
automations.yaml: I have copied the entire filre. All the different ones I have tried are commented out-
id: '1578848851979' alias: Turn on Bedroom Lights description: '' hide_entity: true trigger: platform: state entity_id: sensor.0x00158d0002904e05_click to: 'single' action: - device_id: 16f5e3730e254c1e9b05bbca817862f6 domain: switch entity_id: switch.bedroom_floor_lamp type: turn_on # - alias: Turn on Lyndseys Lamp # trigger: # platform: state # entity_id: sensor.0x00158d0002904e05_click # to: 'double' # action: # - data: # entity_id: switch.bedroom_floor_lamp # type: switch.turn_on # # - id: '1578846412196' # alias: Turn on Lyndseys Lamp # trigger: # - platform: mqtt # topic: 'zigbee2mqtt/0x00158d0002904e05' # condition: # - condition: template # value_template: '{{ "double" == trigger.payload_json.click }}' # action: # - device_id: 16f5e3730e254c1e9b05bbca817862f6 # domain: switch # entity_id: switch.bedroom_floor_lamp # type: turn_on # # - id: toggle_my_light # alias: Turn_on_off_yeelight # trigger: # platform: state # entity_id: sensor.0x00158d0002904e05_click # to: 'single' # action: # service: switch.toggle # entity_id: switch.bedroom_floor_lamp
Posts: 4
Participants: 2