Hi:
I have my thermostat set at our normal house schedules. However sometimes our schedule changes and I want to set up an automation that will check if user is family is home. If family is home it will check the current preset mode attribute of the thermostat and if not set to “home” then call service to set up the thermostat to “home” preset mode. This will cover the thermostat to be at right temperate when our schedule changes.
I know that the attribute I want to check is on
entitiy: climate.home
attribute path: data.attributes.climate_mode
So far I know for sure if family home by this:
But where I struggle is how to access that attribute of the thermostat so when that value is set to sleep or work or away then I call a service to change it to “home”. I dont have an issue calling the service. that works well. It is just accessing the data from that attribute.
Tried with function nodes and switches but still struggling to know how to get it right.