notify:
- name: mypushbullet
platform: pushbullet
api_key: mykey
#####################################
automation:
- alias: nesthome
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: climate.hallway
state: 'away_mode:off'
action:
service: notify.mypushbullet
data_template:
title: "Nest"
message: 'Nest set to Home @ {{now().strftime("%H:%M:%S [%Y-%m-%d]")}}'
- alias: nestaway
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: climate.hallway
state: 'away_mode:on'
action:
service: notify.mypushbullet
data_template:
title: "Nest"
message: 'Nest set to Away @ {{now().strftime("%H:%M:%S [%Y-%m-%d]")}}
neither fire. yet if i trigger the item manually a pushullet notification results. it’s as though the trigger state entity isnt registering correctly.
Any thoughts as to what is wrong?
Your automations are not triggering as climate.hallway does not have a state “away_mode:off” Away mode is an attribute of climate.hallway not a state. That is why it is in the third column of the states page and not the second.
Yep, multiple ways to skin a cat. I just like sensor option as then I can keep a history of that away_mode usage. Also helpful in troubleshooting my automation as I have conditions based on the away_mode. Reviewing the logbook to see why it didn’t trigger and I can check the away_mode status when it should have triggered.
Fair enough. Although you can handle conditions and log attribute changes to the logbook without the extra sensor as well. I already have enough sensors, so I prefer to avoid creating more that just duplicate data. Nice thing is, HASS is flexible enough to let you do it whichever way you want .