Hue bridge repeating last status on Domoticz start

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
amwr
Posts: 20
Joined: Wednesday 28 October 2015 17:48
Target OS: NAS (Synology & others)
Domoticz version:
Location: Switzerland
Contact:

Hue bridge repeating last status on Domoticz start

Post by amwr »

Hi
I'm restarting Domoticz each night for stability reasons. Now I connected a Hue Bridge with a Hue dimmer switch, configured as a selector. All works fine.
However, whenever Domoticz is restarted, Hue Bridge initially sends again the last status of the dimmer switch. This of course triggers the corresponding action in Domoticz which is not really wanted in the middle of the night...

What can I do about this? Of course a workaround would be a rule like "if status updated happens 1 minute after restart, ignore it". Any other ideas?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Hue bridge repeating last status on Domoticz start

Post by waaren »

amwr wrote: Monday 19 October 2020 9:35 What can I do about this? Of course a workaround would be a rule like "if status updated happens 1 minute after restart, ignore it". Any other ideas?
If the action is controlled by a dzVents script you could try

Code: Select all

if device.level == device.lastLevel then return end -- ignore update when no change in level 
Also wondering why the restart. What kind of stability issue?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
amwr
Posts: 20
Joined: Wednesday 28 October 2015 17:48
Target OS: NAS (Synology & others)
Domoticz version:
Location: Switzerland
Contact:

Re: Hue bridge repeating last status on Domoticz start

Post by amwr »

It's blockly currently, but thanks for the hint.
Also wondering why the restart. What kind of stability issue?
Some 1.5 years ago the Web interface was not accessible anymore from time to time and I was not able to find the cause back then. But you have a point, it might well be that nowadays it's more stable and I should try removing those restarts..
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest