Advertisement
bdnstn

CoverSrript

Feb 19th, 2024
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.97 KB | None | 0 0
  1. alias: Partly Open Guest Bed Sliding Door Blind
  2. sequence:
  3.   - if:
  4.       - condition: state
  5.         entity_id: cover.0x540f57fffe85c2a9
  6.         attribute: current_position
  7.         state: 0
  8.     then:
  9.       - service: cover.set_cover_position
  10.         metadata: {}
  11.         data:
  12.           position: 10
  13.     else:
  14.       - if:
  15.           - condition: state
  16.             entity_id: cover.0x540f57fffe85c2a9
  17.             attribute: current_position
  18.             state: 10
  19.         then:
  20.           - service: cover.set_cover_position
  21.             metadata: {}
  22.             data:
  23.               position: 20
  24.         else:
  25.           - if:
  26.               - condition: state
  27.                 entity_id: cover.0x540f57fffe85c2a9
  28.                 attribute: current_position
  29.                 state: 20
  30.             then:
  31.               - service: cover.set_cover_position
  32.                 metadata: {}
  33.                 data:
  34.                   position: 10
  35. mode: single
  36. icon: mdi:roller-shade
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement