I’m trying to have a trigger-state node send a notification when my Nest thermostat switches to “eco” mode. I’ve used a current-state node to confirm that when the thermostat switches to “eco” mode, the “preset_mode” attribute goes from “none” to “eco”. I’ve tried to work this difference into a trigger-state node but I can’t seem to make it work. Here’s the configuration of the trigger-state node:
Note that for the “is” portion of the conditions, in addition to the configuration shown above, I’ve tried both “eco” and eco as strings but those didn’t work either.
The Trigger node will look at the Home Upstairs Nestentity and respond to all state (and attribute) changes.
In conditions, if you want to look at this entity, use ‘this entity’. If looking at another entity, the entity_id must be a valid entity_id, and in this case the JSON path you are attempting to use corrupts the id name.
If you want to look at an attribute, then use ‘property’ rather than ‘current/previous state’ and enter the property as ‘new_state.attributes.preset_mode’. The property fields are held under both ‘new_state’ and ‘old_state’ that match with ‘current state’ and ‘previous state’ for the state value. These properties should auto-complete as you type this in.
The conditional test value would be ‘is’ and ‘string’ and ‘none/eco’