@makai wrote:
I have this automation that is triggering each time I restart HA (Configuration > Server Controls > Restart) even if the trigger is not matching:
- alias: Notification - Ouvrir les fenetres, fait bon dehors trigger: - platform: state entity_id: binary_sensor.open_windows from: 'off' to: 'on' condition: - condition: state entity_id: group.all_person state: 'home' - condition: template value_template: "{{ now().month >= 5 and now().month <= 9 }}" action: - service: notify.all data: title: "Open" message: "windows!" data: push: sound: default
Binary sensor:
- platform: template sensors: open_windows: entity_id: - sensor.temperature_out - sensor.temperature_in value_template: >- {{ (states('sensor.temperature_out')|float + 1) <= states('sensor.temperature_in')|float }}
When I restart HA,
binary_sensor.open_windows
isoff
and noton
and it does not change fromoff
toon
. If the binary_sensor is on I do not receive the notification.
Note that this automation is triggered at shutdown and not at HA start (I receive the notification at the same time as the notification of HA shutdown)
Posts: 1
Participants: 1