You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check newly created sensor Expected: Sensor should return feels like temperature Actual: Sensor shows unknown value
Debug logs
2024-07-03 13:23:48.038 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.karlo_s_room_feels_like_temperature fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update
await self.async_update()
File "/config/custom_components/apparent_temperature/sensor.py", line 305, in async_update
self._temp_val = temp = self._get_temperature(self._temp) # °C
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/apparent_temperature/sensor.py", line 242, in _get_temperature
temperature = TemperatureConverter.convert(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/unit_conversion.py", line 78, in convert
return cls.converter_factory(from_unit, to_unit)(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/unit_conversion.py", line 446, in converter_factory
return cls._converter_factory(from_unit, to_unit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/unit_conversion.py", line 501, in _converter_factory
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: % is not a recognized temperature unit.
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered:
karlobathan
changed the title
Incorrect Parameter Order -- Independent Temperature and Humidity Entities
Incorrect Sources Order -- Independent Temperature and Humidity Entities
Jul 3, 2024
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
Related to #117
I tried to add a new sensor using the independent temperature and humidity approach. I simply based my configuration off of what's in the README
Here's how I configured mine:
The example in the README implies that the order of the sensors should be:
However, like #117, my sensor shows
unknown
.After debugging the script, I found out that the temperature and humidity sources are getting swapped.
What fixed it for me is to swap the order of the sources to this:
Reproduction steps
Expected: Sensor should return feels like temperature
Actual: Sensor shows
unknown
valueDebug logs
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: