Environment:
OpenHAB 3.3.0
Debian Linux
Docker
Issue:
An Item
that gets its state from a HTTP channel returns to the UNDEF
state shortly after it has received a value from the HTTP channel.
Configuration:
HTTP binding with the following Things
definition:
Thing http:url:nefitpressure "Nefit Easy pressure" [
baseURL="http://nefiteasy:3000/api/pressure",
refresh=30
]
{
Channels:
Type number : CVPressure "CV water pressure"
[
mode="READONLY",
stateTransformation="JSONPATH:$.['pressure']"
]
}
and Items
definition:
Number CV_Pressure "Water pressure [%.1f bar]" {channel="http:url:nefitpressure:CVPressure"}
Somehow, about 10-13 seconds after the Item
state is updated with the correct value, it returns to the UNDEF
state. I turned on debugging for the HTTP binding, but nothing shows up in the logs, except:
2022-12-14 20:49:12.446 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CV_Pressure' changed from UNDEF to 1.9
2022-12-14 20:49:25.057 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CV_Pressure' changed from 1.9 to UNDEF
Nothing else shows up in either of the two logs.
Also, nowhere else in my configuration is the CV_Pressure
Item referenced as I have not yet added it to any Widget or rule/script.
Any suggestions how to debug this?