I’m trying to read the previous value of my climate integration from an input_text field and I keep getting an error. Not sure why it isn’t working as everything seems to line up.
I have an input_text defined and I’m currently setting the value of it from the current HVAC mode. That’s all working great. The problem is that when I call the service to set the state back (by pulling it from the input_text) I am getting the following error:
[homeassistant.components.automation.home_ecobee_turn_on_when_doors_closed] While executing automation automation.home_ecobee_turn_on_when_doors_closed
value is not allowed for dictionary value @ data[‘hvac_mode’]
When I use the value “cool” without the template everything works fine and when I test the template it returns the value “cool” so I don’t know what’s going wrong. My failing service call looks like this:
I tried to call the service on its own (without the automation) and it still didn’t work. Same error. It’s as though the template isn’t passing “cool” as the value. Maybe I’m doing it wrong?
HA HA HA. Well that makes so much more sense then! Seems odd that the services panel doesn’t support the various ways to call the service…perhaps a good “WTH”?