Hello everyone,
I would like to report a bug that occurs when an automation is disabled. It seems that if it has an ACTION based on a TEMPLATE then every time the raspberry pi restarts it gets activated when it should remain deactivated like all my other automations.
I discovered this bug at the end of May and all updates since have not fixed it. Rpi 4 4Go - HA OS lastest
Here is the YAML code, it is a precency simulation that randomly turns on a light from a group for a random duration.
Thank you for your comeback.
Fred
alias: Simulation présence
description: “”
trigger:
- platform: time_pattern
minutes: /15
enabled: false
condition: - condition: sun
after: sunset
after_offset: “-00:30:00” - condition: time
before: “23:30:00”
enabled: true
action: - service: input_text.set_value
data_template:
entity_id: input_text.simulation_presence_lumiere_a_allumer
value: >-
{{ state_attr(light.simulation_presence_groupe_lumieres
,entity_id
) |
random }} - service: light.turn_on
data_template:
entity_id: “{{states(input_text.simulation_presence_lumiere_a_allumer
)}}” - delay: 00:{{
{:02}
.format(range(10,30) | random | int) }}:00 - service: light.turn_off
data_template:
entity_id: “{{states(input_text.simulation_presence_lumiere_a_allumer
)}}”
initial_state: true
hide_entity: false
mode: parallel
max: 10