I’m trying to convert to the ‘new’ Nest/Climate commands, I currently have:
action:
- service: climate.set_hvac_mode
data:
entity_id: climate.upstairs
hvac_mode: 'auto'
which results in:
TLDR HVAC cannot cool
Error while executing automation automation.nest_auto_away_mode_off. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 449, in action
await script_obj.async_run(variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 189, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 272, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 354, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 96, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1251, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 201, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 335, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 357, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 422, in async_set_hvac_mode
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/nest/climate.py", line 257, in set_hvac_mode
self.device.mode = MODE_HASS_TO_NEST[hvac_mode]
File "/usr/local/lib/python3.7/site-packages/nest/nest.py", line 407, in mode
self._set('devices/thermostats', {'hvac_mode': value.lower()})
File "/usr/local/lib/python3.7/site-packages/nest/nest.py", line 206, in _set
response = self._nest_api._put(path=path, data=data)
File "/usr/local/lib/python3.7/site-packages/nest/nest.py", line 1874, in _put
return self._request('PUT', path, data=data)
File "/usr/local/lib/python3.7/site-packages/nest/nest.py", line 1866, in _request
raise APIError(response)
nest.nest.APIError: Cannot change HVAC mode to heat-cool: HVAC cannot cool
which is true…my NEST controls only heating not cooling. But all I’m wanting to do is what I used to do with:
action:
- service: climate.set_away_mode
data:
entity_id: climate.upstairs
away_mode: true