Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- covers:
- double_garage_door:
- device_class: garage
- friendly_name: "Double Garage Door"
- unique_id: doublegaragedoor
- value_template: "{{ is_state('binary_sensor.shellyplus2pm_80646fdb8b20_input_0', 'off') }}"
- availability_template: "{{ states('binary_sensor.shellyplus2pm_80646fdb8b20_input_0') in ['on','off'] }}"
- open_cover:
- - condition: state
- entity_id: binary_sensor.shellyplus2pm_80646fdb8b20_input_0
- state: "on"
- - action: switch.turn_on
- target: { entity_id: switch.double_garage_door }
- close_cover:
- - condition: state
- entity_id: binary_sensor.shellyplus2pm_80646fdb8b20_input_0
- state: "off"
- - action: switch.turn_on
- target: { entity_id: switch.double_garage_door }
- stop_cover:
- - action: switch.turn_on
- target: { entity_id: switch.double_garage_door }
Advertisement
Add Comment
Please, Sign In to add comment