Closed rk-nova closed 6 months ago
I tried creating a new group with just two heaters in it (so single mode, no use of generic_thermostat ), and it does not get the same error. Still no way to set the target temp in the card though.
I've found an edge case and i've added a fix that may address your issue. Could you please let me know if it's working well after updating to 0.1.1?
Confirmed, that fixed the error, thanks for the fast fix! I am still not able to set the target temp. but I will create a new issue with more info on that.
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4783 Installed Version | 1.34.0 Stage | running Available Repositories | 1383 Downloaded Repositories | 32Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | August 30, 2024 at 5:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | us-east-1-8.ui.nabu.casa certificate_status | ready instance_id | 8fb2c7ce6af84f0bb82af2f5afeecfef can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okkeymaster
zwave_integration | zwave_js -- | -- network_status | onDashboards
dashboards | 19 -- | -- resources | 13 views | 21 mode | storageRecorder
oldest_recorder_run | January 21, 2024 at 10:31 PM -- | -- current_recorder_run | January 28, 2024 at 6:42 PM estimated_db_size | 462.57 MiB database_engine | postgresql database_version | 15.3Spotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
Working on setting up a group for the first time, and when I change the mode from Off to Heat/Cool, I get this error:
'HvacGroupClimateEntity' object has no attribute '_target_temperature'
The error shows up as a popup at the bottom of the HA web UI and in the logs.
Note that the AC thermostat in this case is using generic_thermostat to give me a virtual thermostat (which then triggers an IR blaster to change settings on the AC unit). I don't think this is related to the root cause, but wroth noting.
Full callstack: 2024-01-28 18:49:24.315 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140076596258112] 'HvacGroupClimateEntity' object has no attribute '_target_temperature' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2149, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2186, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 882, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/hvac_group/climate.py", line 1218, in async_set_hvac_mode await self.async_defer_or_update_ha_state(update_actuators=True) File "/config/custom_components/hvac_group/climate.py", line 837, in async_defer_or_update_ha_state await self.async_run_hvac(update_actuators=update_actuators) File "/config/custom_components/hvac_group/climate.py", line 962, in async_run_hvac or self._target_temperature is not None ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'HvacGroupClimateEntity' object has no attribute '_target_temperature'
The group has two items, one heat only and one cool only. Worth noting that in the details popup/card, I don't see the UI to set either the target high or low temp.
Any way, thanks for the help and the integration! I was looking for something just like this last fall. Don't actually need it to function right now as the AC units have been removed, just doing some testing before spring gets here.
Reproduction steps
Debug logs
Diagnostics dump
No response