- openHABian 3.3.0 on rPi4 with 4GB
I noticed today that a bunch of items are not being updated.
I have a Thing with 61 channels, which are updated every 10 seconds.
While all related items show values, some of these are not being updated.
I can see the values being sent via MQTT by listening to the topics, but the items in OH3 are not updated. This only applies to some, but not all of them.
The channel topics have been copied (not typed); hence, are correct. I copy and paste these into mosquitto_sub.
A channel example looks like this
- id: ac_source_status
channelTypeUID: mqtt:number
label: AC Source Status
description: ""
configuration:
stateTopic: ArgyleCourt/Shed/Modbus/Data/8059
listening to mosquitto results in this:
[2022-12-19 07:35] maxg@x570 ~ $
mosquitto_sub -h 192.168.1.5 -t ArgyleCourt/Shed/Modbus/Data/8059 | xargs -d$'\n' -L1 sh -c 'date "+%Y-%m-%d %T.%3N $0"'
2022-12-19 07:54:05.523 0
2022-12-19 07:54:15.588 0
2022-12-19 07:54:25.651 0
… but the event.log does not record the change, nor is the respective item updated.
Changing the item state via karaf works.
2022-12-19 07:53:33.702 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'spm_AC_Source_Voltage' changed from 1.4 to 1.5
2022-12-19 07:56:41.028 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'spm_AC_Source_Status' received command 6
2022-12-19 07:56:41.035 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'spm_AC_Source_Status' predicted to become 6
2022-12-19 07:56:41.052 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'spm_AC_Source_Status' changed from 0 to 6
2022-12-19 07:56:45.001 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'spm_AC_Source_Status' received command 0
2022-12-19 07:56:45.007 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'spm_AC_Source_Status' predicted to become 0
2022-12-19 07:56:45.042 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'spm_AC_Source_Status' changed from 6 to 0
2022-12-19 07:56:54.984 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'spm_AC_Source_Voltage' changed from 1.5 to 1.4
Most of the 61 channels do update their linked items.
To prove a point, I linked a newly created item to the channel.
It does not get updated either.
I am running my OH2 system in parallel, which is identical, and which receives and updates all items of the thing.
To prove a point, I issued the MQTT topic manually:
# [2022-12-19 08:13] maxg@x570 ~ $
mosquitto_pub -h 192.168.1.5 -t ArgyleCourt/Shed/Modbus/Data/8059 -m 6
OH2 reacted, OH3 did not.
Any hints on how to troubleshoot this issue would be appreciated. Thanks.