The following automation gets executed every time HA restarts, even if the state hasn’t changed during the restart.
How do I prevent this?
alias: Notify when Nest is set to home
initial_state: True
hide_entity: False
trigger:
platform: template
value_template: "{{ is_state_attr('climate.living_room', 'away_mode', 'off') }}"
action:
service: notify.pushbullet
data:
title: 'Nest is set to home'
message: ""