I’m trying to write a script that will automatically change the temperature of the house based on other criteria. So far my script looks like this:
# Turn up Heat
heat_on:
alias: Heat On
sequence:
- service: climate.set_temperature
data:
entity_id: climate.thermostat
temperature: 68
target_temp_low: 68
target_temp_high: 78
This is not working at all. It pulls the following error:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 181, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/__init__.py", line 340, in async_temperature_set_service
yield from climate.async_set_temperature(**kwargs)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/honeywell.py", line 300, in set_temperature
if getattr(self._device, "hold_{}".format(mode)) is False:
AttributeError: 'Device' object has no attribute 'hold_auto'
I’m probably not setting this up correctly but going over the Honeywell component section and the Climate section I’m still at a loss. Any thoughts on the matter?