Hello,
I am having a status return issue with my roller shutters.
When panes are open, they are displayed “off” in the developer tool. As a result, the switch button is also found as closing while the shutters are open. The icon is well displayed to him as covered. How to put the switch as open? How can I reverse the state?
switch:
- platform: template
switches:
tousvolets:
friendly_name: "Tous les volets"
value_template: "{{ is_state('switch.volet_hangar_md', 'on') }}"
turn_on:
- service: switch.turn_on
target:
entity_id: switch.volet_hangar_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_baie_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_bureau_md
- delay: "00:00:00.500"
- service: switch.turn_on
target:
entity_id: switch.volet_garage_md
turn_off:
- service: switch.turn_off
target:
entity_id: switch.volet_hangar_md
- delay: "00:00:00.500"
- service: switch.turn_off
target:
entity_id: switch.volet_baie_md
- delay: "00:00:00.500"
- service: switch.turn_off
target:
entity_id: switch.volet_bureau_md
- delay: "00:00:00.500"
- service: switch.turn_off
target:
entity_id: switch.volet_garage_md
volethangar:
friendly_name: "Volet Hangar"
value_template: "{{ is_state('switch.volet_hangar_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_hangar_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_hangar_md
voletgarage:
friendly_name: "Volet Garage"
value_template: "{{ is_state('switch.volet_garage_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_garage_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_garage_md
voletbureau:
friendly_name: "Volet Bureau"
value_template: "{{ is_state('switch.volet_bureau_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_bureau_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_bureau_md
voletbaie:
friendly_name: "Volet Baie"
value_template: "{{ is_state('switch.volet_baie_md', 'on') }}"
turn_on:
service: switch.toggle
target:
entity_id: switch.volet_baie_md
turn_off:
service: switch.toggle
target:
entity_id: switch.volet_baie_md