Closed spali closed 5 years ago
Hello!
You are exactly right. -320°C is out of the KNX specification of DPT 9.001 which would be: -273 °C ... 670 760 °C
(and its also out of specification of laws of physics 🤓)
If you can't disable this behaviour in the device application, you could bypass this error by using a general 2-byte float datatype
sensor:
- platform: knx
name: aussen_temperatur
type: 'DPT-9'
address: '5/4/2'
device_class: 'temperature'
I haven't tested setting device_class
in the config, but it should work. This is for the little temperature sign in the visualization and may be needed for some components like HomeKit.
Hello! You are exactly right. -320°C is out of the KNX specification of DPT 9.001 which would be:
-273 °C ... 670 760 °C
(and its also out of specification of laws of physics 🤓)
didn't even thought about that... you are absolutely right :see_no_evil:
If you can't disable this behaviour in the device application, you could bypass this error by using a general 2-byte float datatype
sensor: - platform: knx name: aussen_temperatur type: 'DPT-9' address: '5/4/2' device_class: 'temperature'
I haven't tested setting
device_class
in the config, but it should work. This is for the little temperature sign in the visualization and may be needed for some components like HomeKit.
device_class
is not allowed there, but with customization it's possible to set the device_class: 'temperature'
For anyone else that has this 1:1000000000 problem, the following results in a working (physical not possible) solution that looks exactly the same in home assistant 🦄
sensor:
- platform: knx
name: aussen_temperatur
type: 'DPT-9'
address: 5/4/2
homeassistant:
customize:
sensor.aussen_temperatur:
friendly_name: 'Aussen Temperatur'
device_class: 'temperature'
unit_of_measurement: '°C'
Description of problem:
In my case it's and edge case with low prio. Because it's a new weather station, that I didn't fully setup yet. When the station has some error like no additional power source etc. it reports -320 °C as temperature. But maybe it leads to a bug in parsing floats in general? The strange thing is, the error displays the value correct... so why the error... is it out of a specification for temperature?
Version information:
KNX installation:
Product: Griesser EMX-8 DPT: 9.001 Temperatur (°C) Monitor export: (first telegram is the read request from homeassistant, second is the answer)
Problem-relevant
xknx.yaml
orconfiguration.yaml
entries (fill out even if it seems unimportant):Traceback (if applicable): not available