This component calculates psychrometric states of moist air using ASHRAE 2009 Fundamentals formulations. Atmospheric pressure, and humidity must be given to calculate the other propreties.
platform: meteorologic_metrics
name: "Meteorologic Metrics" # optional, use if you want to use mulitple instances
temp: sensor.lumi_weather_outside_temperature_01 # celsius
hum: sensor.lumi_weather_outside_humidity_01 # celsius
dew: sensor.acasa_dew_point # required if you want WBT estimated with dewpoint depression
pressure: sensor.lumi_weather_outside_pressure_01
getting no attributes but just "Unknown"
from the logs
`Logger: homeassistant
Source: custom_components/meteorologic_metrics/helpers.py:9
Integration: meteorologic_metrics (documentation)
First occurred: 08:51:39 (25 occurrences)
Last logged: 09:03:39
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 734, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 492, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 541, in _async_write_ha_state
extra_state_attributes = self.extra_state_attributes
File "/config/custom_components/meteorologic_metrics/sensor.py", line 83, in extra_state_attributes
"SI wet bulb temp C": round(toC(S[5]), 2),
File "/config/custom_components/meteorologic_metrics/helpers.py", line 9, in toC
return celsius - KELVIN_CONVERSION
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'`
This is my config, sensor:
getting no attributes but just "Unknown"
from the logs
`Logger: homeassistant Source: custom_components/meteorologic_metrics/helpers.py:9 Integration: meteorologic_metrics (documentation) First occurred: 08:51:39 (25 occurrences) Last logged: 09:03:39
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 734, in _update_entity_states await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 492, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 541, in _async_write_ha_state extra_state_attributes = self.extra_state_attributes File "/config/custom_components/meteorologic_metrics/sensor.py", line 83, in extra_state_attributes "SI wet bulb temp C": round(toC(S[5]), 2), File "/config/custom_components/meteorologic_metrics/helpers.py", line 9, in toC return celsius - KELVIN_CONVERSION TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'`