Hi
I have a climate.panasonic_aircon enity. I can control the air conditioner through service: climate.set_operation_mode. Sometimes the operation mode of the air conditioner changes outside of hass. I have the ability to check this change through a sensor that monitors the angle of the air conditioner vent. I want to create an automation that changes the state of climate.panasonic_aircon. I am able to do this in the web interace by using the states part of home assistant.
Enitity
climate.panasonic_aircon
State
any string of text
State attributes (JSON, optional)
{
"current_temperature": 21.2,
"min_temp": 16,
"max_temp": 30,
"temperature": 23,
"target_temp_step": 1,
"fan_mode": "auto",
"fan_list": [
"low",
"mid",
"high",
"auto"
],
"operation_mode": "idle",
"operation_list": [
"idle",
"cool",
"heat"
],
"unit_of_measurement": "°C",
"friendly_name": "Panasonic Aircon",
"supported_features": 193
}
[ SET STATE BUTTON ]
How do i insert the above into an automation eg.
- alias: 'change aircon state to off'
trigger:
action:
# service call to api to change state
Thanks
Kiwi