I have an OpenHAB4.3.1 running with a huge setup running on a Pi4 in a docker environment. In general all is working fine and without issues.
Since a few weeks I have an issue with the hue binding, that the hue items don’t react after time. Actors don’t react, sensors don’t deliver updates. In this case I don’t see any issue in the logs. OpenHAB thinks that all works as expected, but it doesn’t.
Does anybody has an advice what to check in such a case? How to find this issue?
Do actors, sensors, lights react when you use the Philips Hue App? Just to make sure that it is really openHAB related?
For example I needed to change the Hue communication channel to a different one because some Hue Lights were not reachable due to frequency-overlap (with Wifi).
did you try to change logging level?
You can see the current logging level:
Yes they are working using the app when openhab can not control them
I tried to set a debug loglevel already but didn’t see anything. But to be honest there where a lot information with debug. Maybe I missed something…
Openhab lists the things as online when they do not work. There is no indicator, that it doesn’t work. Regarding to the log the actors take their commands and there are no signals from sensor like motion.
I will activate the trace log the next time when it happens. But I don’t think that I will see anything. Normally this happens each 3-4 days. So I should see it latest tomorrow or the day after…
Ok this night I had the issue again. Something changed in the behavior since I moved to hue api2:
The actors seems to work, also when the issue exists. My lights and plugs can be controlled with OH
Motion sensors and dimmer switches doesn’t work
BUT I can see that the motion sensors and the dimmer switches send data to the hue binding after enabled the TRACE log of them
BUT I have rules which should get triggered by them and they don’t do!
The switches for the hue motion items in the UI also doesn’t trigger when I see the motion events in the logs
After a restart of the hue bundle nothing of the hue binding works and I get messages like this in the logs (I replaced the IDs with xxx and yyy): 2024-07-25 06:45:26.012 [WARN ] [e.internal.handler.Clip2ThingHandler] - Command 'ON' for channel 'hue:device:xxxx:yyyy:brightness' cannot be processed by thing 'hue:device:xxx:yyy'.
The only fix is to restart OH then.
So for me it currently looks as the connection between the hue binding and the ?eventing? system from OH is broken in this situation?
You seem to be talking about too many things at the same time. Can we please focus on one at a time? Say the motion sensor. Can you please share the thing and item configuration for that device? Does it have an item connected to the motion detector enabled channel? And is that channel enabled?
Motion sensors are usually combined with light and temperature sensors, but they will have three channels associated with the motion functionality – namely motion, motion-enabled, and motion-last-updated – in particular the latter should help you in debugging…
I’m talking about of many things, because they are those which are not working
Currently all is working since 25th. of July. I don’t know why, because I didn’t change anything. The only thing I did not do is to reconfigure stuff in openhab I think. Normally I do this with VS Code / Openhab extension / ssh. Do you think that the openhab vscode plugin can happen issues like that? Or is there a known issue that openhab needs to be restarted after editing the thing, item or rules files from hue related stuff?
I will not open vscode right now until I have the next issue, to see if the system stays stable without that. So I can send you my thing and item configuration example as soon as the issue occurs again. But I don’t think that there is an issue with them, because normally everything runs fine, except when this issue occurs after days. But normally I had this each few days. So 1,5 weeks till now is a really long timespan…
As already set I have a lot of them and after restarting openhab they work fine, until they don’t work anymore. If the issue occurs, other hue based items like lamps and switches are working, but there is no event at all from the motion sensors. I also can’t find anything regarding motion in the logfiles then.
I just tried to get a devices from the bridge using the karaf command:
openhab> openhab:hue hue:bridge-api2:xxxxxxxxxx things
when I’m in the faulty state. I get the motion sensors in the list as well. I can see them in the HUE app, too, and there I can also see the motion event. Just openhab doesn’t get the motion events then.
Work=Change of item state when motion happens
Not Work=No change of item state. Item stays „OFF“
I’m aware of the enabled state but I didn’t check it yet because normally they are working so they have to be enabled. After a restart of openHAB they are working again without changing anything else
just wanna let you know that I have the same behavior at my system since a few weeks.
At the moment I try to catch the moment the sensors stoped working…
What I can say is that 1. disable/enable the bridge Thing doesn’t fix the error, as the bridge doesn’t come onlien then. I have to restart OH.
Are you using the OH plugin and VS Code? I feel like there is a dependency to the plugin. This installs a server component to be able to get the thing state etc. In the past I had the feeling that the issue occurs x hours after accessing OH with the VS Code plugin. It may be that my issue came back when I installed the plugin again.
I can confirm that disable/enable the thing doesn’t work as well restarting the hue bundle.
I will check for the requested logs when the issue occurs the next time.
yes I’m using VS Code too. And I’m also wondering if changing rules, items and things may have an impact. Sometimes rules stopped working or thinds doesn’t change.
I’m looking at the googletv binding atm. There are http connection errors too. And this devices are the last big changes at my system.
@Thomas_Frank@HuberDe thanks for reporting. However I cannot replicate this issue. So I need trace logs in order to find a fix. Also what OH version are you on? If you think it is related to VS code, then it is probably NOT related directly to the binding. Can you both confirm that it is ONLY related to motion or light level sensors? In other words can you confirm that other devices (lights and switches) resp. rooms/zones do work as before?