arogers86

Garage Door Template Cover

Nov 3rd, 2025
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.94 KB | None | 0 0
  1. - platform: template
  2.   covers:
  3.     double_garage_door:
  4.       device_class: garage
  5.       friendly_name: "Double Garage Door"
  6.       unique_id: doublegaragedoor
  7.       value_template: "{{ is_state('binary_sensor.shellyplus2pm_80646fdb8b20_input_0', 'off') }}"
  8.       availability_template: "{{ states('binary_sensor.shellyplus2pm_80646fdb8b20_input_0') in ['on','off'] }}"
  9.       open_cover:
  10.         - condition: state
  11.           entity_id: binary_sensor.shellyplus2pm_80646fdb8b20_input_0
  12.           state: "on"
  13.         - action: switch.turn_on
  14.           target: { entity_id: switch.double_garage_door }
  15.       close_cover:
  16.         - condition: state
  17.           entity_id: binary_sensor.shellyplus2pm_80646fdb8b20_input_0
  18.           state: "off"
  19.         - action: switch.turn_on
  20.           target: { entity_id: switch.double_garage_door }
  21.       stop_cover:
  22.         - action: switch.turn_on
  23.           target: { entity_id: switch.double_garage_door }
Advertisement
Add Comment
Please, Sign In to add comment