Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Kitchen Button
- description: Controls for the Kitchen Zigbee Button
- trigger:
- - platform: mqtt
- topic: zigbee2mqtt/Kitchen Remote/action
- id: kitchen_button_on
- payload: 'on'
- - platform: mqtt
- topic: zigbee2mqtt/Kitchen Remote/action
- id: kitchen_button_off
- payload: 'off'
- - platform: mqtt
- topic: zigbee2mqtt/Kitchen Remote/action
- id: kitchen_button_hold_up
- payload: brightness_move_up
- - platform: mqtt
- topic: zigbee2mqtt/Kitchen Remote/action
- id: kitchen_button_hold_down
- payload: brightness_move_down
- condition: []
- action:
- - choose:
- - conditions:
- - condition: or
- conditions:
- - condition: trigger
- id: kitchen_button_on
- - condition: trigger
- id: kitchen_button_off
- sequence:
- - service: light.toggle
- target:
- entity_id: light.kitchen_zigbee_lights
- - conditions:
- - condition: or
- conditions:
- - condition: trigger
- id: kitchen_button_hold_down
- - condition: trigger
- id: kitchen_button_hold_up
- sequence:
- - service: light.toggle
- target:
- entity_id: light.bathroom_lights
- default: []
- mode: single
Add Comment
Please, Sign In to add comment