Closed MasterDevwi closed 6 months ago
I've almost completely re-written the integration and I'm hoping it's much more robust now. There's a 0.2.0-beta version you could try (but you have to enable beta versions in HACS).
This issue was most likely fixed in #62 but please reopen it if it's not.
I just updated to v0.2.0. After deleting and re-adding the custom HVAC entity, I can now select Heat or Cool, as well as attempt to set the temperature.
Unfortunately, attempting to change the mode or set the temperature throws the following error:
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:240 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 12:31:52 PM (4 occurrences) Last logged: 12:33:01 PM
[547469945024] Flair server response content-type is not json:
Internal Server Error
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/flairaio/flair_client.py", line 559, in _response response: dict[str, Any] = await resp.json() ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1166, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://api.flair.co/api/structures/56658')The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/hvac_group/climate.py", line 1003, in async_set_hvac_mode await self.async_commit_state_if_running(update_actuators=True) File "/config/custom_components/hvac_group/climate.py", line 540, in async_commit_state_if_running await self._heaters.async_commit() File "/config/custom_components/hvac_group/actuator.py", line 368, in async_commit await actuator.async_commit() File "/config/custom_components/hvac_group/actuator.py", line 217, in async_commit await self._action_to_commit File "/config/custom_components/hvac_group/actuator.py", line 374, in create_coro return await function(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/hvac_group/actuator.py", line 170, in _async_call_climate_service await self.hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 835, in async_service_temperature_set await entity.async_set_temperature(kwargs) File "/config/custom_components/flair/climate.py", line 259, in async_set_temperature await self.coordinator.client.update('structures', self.structure_data.id, attributes=attributes, relationships={}) File "/usr/local/lib/python3.12/site-packages/flairaio/flair_client.py", line 479, in update return await self._patch(request_url, request_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/flairaio/flair_client.py", line 543, in _patch return await self._response(resp) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/flairaio/flair_client.py", line 575, in _response raise FlairError(f'Flair server response content-type is not json: {text}') from cte flairaio.exceptions.FlairError: Flair server response content-type is not json:
Internal Server Error
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.34.0 Stage | running Available Repositories | 1387 Downloaded Repositories | 57Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | November 19, 2024 at 4: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-6.ui.nabu.casa certificate_status | ready instance_id | c5c1cff36aed48bcac5a13c02c5e099c can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 11.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.12.1 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 457.7 GB disk_used | 50.1 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.7.0), Terminal & SSH (9.8.1), Mosquitto broker (6.4.0), Ring-MQTT with Video Streaming (5.6.3), Home Assistant Google Drive Backup (0.112.1), Node-RED (17.0.4), OneDrive Backup (2.2.4), ESPresense Companion (0.6.4), Studio Code Server (5.15.0), chrony (3.0.1), Advanced SSH & Web Terminal (17.0.5), MQTT Explorer (browser-1.0.3), Govee to MQTT Bridge (2024.01.24-ea3cd430)Dashboards
dashboards | 3 -- | -- resources | 41 views | 13 mode | storageRecorder
oldest_recorder_run | January 27, 2024 at 5:00 AM -- | -- current_recorder_run | January 31, 2024 at 5:31 PM estimated_db_size | 2193.75 MiB database_engine | sqlite database_version | 3.41.2Spotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
I have a Flair thermostat that controls a number of other room-specific thermostats. I can control the mode (heat, cool, heat/cool, or off) and the set temperature, but the current temperature isn't shown:
I'm using HVAC Group to try to solve this by wrapping the Flair thermostat with a custom temperature sensor that has the current home temp. For some reason, I can only switch between the heat/cool and off modes. And there's no way to set the temperature.
I believe I have all of the settings correct, so I'm worried this is a bug. But maybe I'm missing something?
Reproduction steps
Debug logs
Diagnostics dump
No response