Skip to content

Instantly share code, notes, and snippets.

@tioan
Last active August 14, 2020 14:37
Show Gist options
  • Save tioan/aee6d707148d9267fb4e897767be8056 to your computer and use it in GitHub Desktop.
Save tioan/aee6d707148d9267fb4e897767be8056 to your computer and use it in GitHub Desktop.
- id: '1597414084922'
alias: Spiegelschrank Bad - Ein
description: ''
trigger:
- device_id: 75ebf070f93c484ebebd44ae264400ed
discovery_id: 0xec1bbdfffed18daf click_on
domain: mqtt
platform: device
subtype: 'on'
type: action
condition: []
action:
- device_id: 17f2554c1a0f487bbe7c82be2e7cf939
domain: switch
entity_id: switch.0x01124b001bae780e_switch
type: turn_on
mode: single
- id: '1597414121781'
alias: Spiegelschrank Bad - Aus
description: ''
trigger:
- device_id: 75ebf070f93c484ebebd44ae264400ed
discovery_id: 0xec1bbdfffed18daf click_off
domain: mqtt
platform: device
subtype: 'off'
type: action
condition: []
action:
- device_id: 17f2554c1a0f487bbe7c82be2e7cf939
domain: switch
entity_id: switch.0x01124b001bae780e_switch
type: turn_off
mode: single
from z2m log:
Zigbee2MQTT:info 2020-08-14 16:36:57: MQTT publish: topic 'zigbee2mqtt/Bath Room - Cabinet', payload '{"linkquality":30,"update_available":false,"battery":74,"action":"on","click":"on"}'
Zigbee2MQTT:info 2020-08-14 16:36:57: MQTT publish: topic 'zigbee2mqtt/Bath Room - Cabinet', payload '{"linkquality":30,"update_available":false,"battery":74,"action":""}'
Zigbee2MQTT:info 2020-08-14 16:36:57: MQTT publish: topic 'zigbee2mqtt/Bath Room - Cabinet/action', payload 'on'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment