Advertisement
Einstine1984

Untitled

Dec 21st, 2021
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.66 KB | None | 0 0
  1. alias: Door Experimental
  2. description: ''
  3. trigger:
  4.   - device_id: e2655fbc07379214b144679e3b8f6e89
  5.     domain: zha
  6.     platform: device
  7.     type: remote_button_short_press
  8.     subtype: remote_button_short_press
  9.     id: '1'
  10.   - device_id: e2655fbc07379214b144679e3b8f6e89
  11.     domain: zha
  12.     platform: device
  13.     type: remote_button_double_press
  14.     subtype: remote_button_double_press
  15.     id: '2'
  16. condition: []
  17. action:
  18.   - choose:
  19.       - conditions:
  20.           - condition: trigger
  21.             id: '1'
  22.         sequence:
  23.           - service: lock.lock
  24.             target:
  25.               entity_id: lock.lockskov
  26.       - conditions:
  27.           - condition: trigger
  28.             id: '2'
  29.         sequence:
  30.           - delay:
  31.               hours: 0
  32.               minutes: 0
  33.               seconds: 2
  34.               milliseconds: 0
  35.           - wait_for_trigger:
  36.               - device_id: e2655fbc07379214b144679e3b8f6e89
  37.                 domain: zha
  38.                 platform: device
  39.                 type: remote_button_short_press
  40.                 subtype: remote_button_short_press
  41.             continue_on_timeout: false
  42.           - delay:
  43.               hours: 0
  44.               minutes: 0
  45.               seconds: 3
  46.               milliseconds: 0
  47.           - wait_for_trigger:
  48.               - device_id: e2655fbc07379214b144679e3b8f6e89
  49.                 domain: zha
  50.                 platform: device
  51.                 type: remote_button_short_press
  52.                 subtype: remote_button_short_press
  53.             continue_on_timeout: false
  54.           - service: lock.unlock
  55.             target:
  56.               entity_id: lock.lockskov
  57.     default: []
  58. mode: single
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement