@LonePurpleWolf
While you airtouch integration works most of the time. It will break every now and then. I have no idea why, or when it happens. A restart of Home Assistant seems to fix it.
Any commands sent from HA get through to the unit and are actioned. But nothing gets updated on the Home assistant side of things. Instead it will throw errors such as:
Failed to call service climate/set_hvac_mode. 'AirTouchAc' object has no attribute 'ModeSupported'
Failed to call service climate/set_temperature. -1
I found this in the logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 119, in _handle_refresh_interval
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in async_refresh
update_callback()
File "/config/custom_components/airtouch4/climate.py", line 212, in _handle_coordinator_update
return super()._handle_coordinator_update()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 245, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
attr = self.capability_attributes
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 189, in capability_attributes
self.hass, self.min_temp, self.temperature_unit, self.precision
File "/config/custom_components/airtouch4/climate.py", line 232, in min_temp
return self._airtouch.acs[self._unit.BelongsToAc].MinSetpoint
KeyError: -1
I’m not sure if that is enough to go on, I’m happy to help with more bug finding if you can point me in the right direction, I can give you more logs. This is running on HASS.IO, but I’m in the process of moving to a Ubuntu distribution running HA in a docker. Though I’m learning as I go along, so its a slow process, not sure if that will make things run any better.
It generally will run fine for a few hours at least. Then randomly stop working when I try and change things. I quick reboot and its all working fine again… so its a little strange.