i’ve just checked my logs and I don’t see it.
I don’t get anything about PowerState in my logs either.
Seems like you and others have had similar error notifications in the past involving the PowerState attribute (personally I don’t see the error message). It almost seems like an indicator that the Airtouch cannot be reached at that point in time.
Do you receive this error every time during startup and only during the startup? If so, I wonder what would happen if you would disable the Airtouch integration, reboot Home Assistant, and then start the integration after HA is fully booted. It could maybe help determine whether the integration tries to connect to the Airtouch too early during the reboot or something (not sure if that’s technically possible).
I guess anyone with power state error post a larger section of logs, context might help with diagnosis.
Pretty much the same as when I posted about it in June 2022. I’ve got log level set to debug for AirTouch4, maybe others have that set for less log detail.
2023-04-19 07:03:25.137 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 341, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 142, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/components/airtouch4/climate.py", line 103, in _handle_coordinator_update
return super()._handle_coordinator_update()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 401, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 568, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 632, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 574, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 242, in state
if self.hvac_mode is None:
File "/usr/src/homeassistant/homeassistant/components/airtouch4/climate.py", line 144, in hvac_mode
is_off = self._unit.PowerState == "Off"
AttributeError: 'AirTouchAc' object has no attribute 'PowerState'
Both integrations work pretty well for me too - and both produce error messages from time to time
I would only use one integration at a time. Using both could potentially be a cause of odd problems.
I have been running https://github.com/mihailescu2m/hass-airtouch4-platform/blob/main/README.md
unsure if this is the ideal one at the moment… but
a) i dont have ITCs
b) i want to be able to manually set the damper control on each section
c) I want to be able to control the fan speed of the main aircon unit
Is this the ideal integration still?
Are you saying you don’t have temperature sensors in each room? That’s a somewhat unusual setup. Someone else may have tried it and may be able to tell you. It should be fairly easy to try it out and see if it works.
I have zigbee temp sensors that control everything via node red, works pretty well.
I think what i am more saying is, development on this integration has somewhat stopped (both on the HACS version and the version as part of Home Assistant). Is this an issue?
I wouldn’t say development has stopped, I would say the integration is stable and currently doesn’t seem to need any more work. There might be edge cases like not having temperature sensors in each room that might not work, I don’t know about those, but things seem to work well to me.
You can always fork the repository and continue to develop it yourself.
Yep, you can do all these things without any ITCs (I don’t have any either). As @tomwaldnz said, the integration does what it needs to do. Not sure if much more development is required. People experience some occasional connection errors/ error messages and it would be great if these could be fixed, but my personal experience is that this integration is very stable / reliable.
Does anyone know how to change the yaml config for the units? I have 2 units controlled by 1 screen, the main unit which has 7 zones and the secondary unit with a single zone, the secondary unit I cannot control the temperature though? the config for each is below but i do not know how or where i would change it?
hvac_modes:
- 'off'
- cool
- fan_only
- dry
- heat
- auto
min_temp: null
max_temp: null
target_temp_step: 1
fan_modes:
- high
- medium
- low
- auto
current_temperature: 21
fan_mode: low
friendly_name: AC Ground
supported_features: 8
hvac_modes:
- 'off'
- cool
- fan_only
- dry
- heat
- auto
min_temp: 17
max_temp: 35
target_temp_step: 1
fan_modes:
- high
- medium
- low
- auto
current_temperature: 23
temperature: 23
fan_mode: low
friendly_name: AC Upper
supported_features: 9
@Kopite1892 I don’t quite understand your question. Can you please restate, and maybe post a screen shot of what you’re talking about to make it more obvious.
I think you’re saying you have two heat pumps / air conditioners, controlled by a single Airtouch 4 unit. You have this integration controlling both heat pumps on the same screen, but the units of one of them aren’t showing. Do you mean temperature units?
Perhaps for testing you could split the controls out to two new dashboards, and show us screenshots of those. I see min and max temp are null for one of the units, I wonder if that could be related to the issue.
Generally just see if you can give a bit more info and I’ll see if I can help. I haven’t seen anyone else using this integration to control two air conditioners, so could be interesting.
@tomwaldnz, yeah apologies. You are correct I am controlling to Heat Pumps from a single screen.
The main unit has 7 zones and I can see and control the temperature from the integration
The secondary unit only has a single zone and there is no temperature in the integration
@Kopite1892 It looks like both have a temperature… the first has 24.3 and the second has 16. The first looks like it has a little dot to set the temperature, the second doesn’t. Is that what you mean?
Have you tried my suggestion to set up a separate dashboard for each unit? Try that, post a screenshot and the code for the one that currently doesn’t work if it still doesn’t work.
This is the AC Ground yaml config
hvac_modes:
- 'off'
- cool
- fan_only
- dry
- heat
- auto
min_temp: null
max_temp: null
target_temp_step: 1
fan_modes:
- high
- medium
- low
- auto
current_temperature: 20
fan_mode: low
friendly_name: AC Ground
supported_features: 8
See it only has the 8 features?
I have three air conditioners in my house, only one controlled by the Airtouch. I have each on its own Dashboard.
This is down the left of the Home Assistant screen
Here’s my office air con control
Here’s my kitchen air con control
My AirTouch control looks odd at the moment as I have it on damper mode, so not much point showing a screenshot.