penright

Untitled

Apr 21st, 2022 (edited)
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. automation:
  2.   - alias: Shop Unlock From Click
  3.     id: Shop Unlock From Click
  4.     trigger:
  5.       - platform: mqtt
  6.         topic: "zigbee2mqtt/0x00124b0025143172"
  7.         value_template: "{{ value_json.action }}"
  8.         payload: "single"
  9.     condition: []
  10.     action:
  11.       - wait_for_trigger:
  12.           - platform: mqtt
  13.             topic: "zigbee2mqtt/0x00124b0025143172"
  14.             value_template: "{{ value_json.action }}"
  15.             payload: "double"
  16.         timeout: "00:00:05"
  17.         continue_on_timeout: false
  18.       - wait_for_trigger:
  19.           - platform: mqtt
  20.             topic: "zigbee2mqtt/0x00124b0025143172"
  21.             value_template: "{{ value_json.action }}"
  22.             payload: "single"
  23.         timeout: "00:00:05"
  24.         continue_on_timeout: false
  25.       - service: input_boolean.turn_off
  26.         entity_id: input_boolean.shop_lock
  27.  
Add Comment
Please, Sign In to add comment