@matteos1 wrote:
i have this automation but not work
the switch of input.boolean stay always on- id: luci_spente_cucina alias: 'luci spente cucina' trigger: - platform: state entity_id: switch.plug_158d000163fbb8 #Luci Mensola from: 'on' to: 'off' - platform: state entity_id: switch.plug_158d00010ac8ad #Luci Centrali from: 'on' to: 'off' - platform: state entity_id: switch.netatmo_led_cucina #Luci led cucina from: 'on' to: 'off' - platform: state entity_id: switch.plug_158d0002366d21 #Coppa vapore from: 'on' to: 'off' action: - service_template: > {%- if is_state('input_boolean.luci_mensola', 'off') and is_state('input_boolean.luci_centrali', 'off') and is_state('input_boolean.coppa_vapore', 'off' ) and is_state('input_boolean.luci_led_cucina', 'off' )-%} input_boolean.turn_on {%- else -%} input_boolean.turn_off {%- endif %} entity_id: input_boolean.luci_spente_cucina
someone that could help me?
Posts: 6
Participants: 3