Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99175

One automation triggered at each restart, why?

$
0
0

@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 is off and not on and it does not change from off to on. 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

Read full topic


Viewing all articles
Browse latest Browse all 99175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>