eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
861 stars 787 forks source link

[HUE] Channel dimmer_switch_event triggered with last state at OH start #6912

Open JordanMartin opened 4 years ago

JordanMartin commented 4 years ago

When OH (2.4.0) starts the last pressed button of the hue controller (thing type 0820) is sent through the dimmer_switch_event channel.

The rules that use this channel or linked item are also trigger with last pressed button. In my case it open my smart lock. So in case of system restart (power supply failure then backup)...

According to Item state manipulation I expected a postUpdate when recover the last event state and sendCommand when a button is actually pressed.

cweitkamp commented 4 years ago

This behavior should be fixed with https://github.com/eclipse/smarthome/pull/6770 - which has been merged after OH2.4 release and is part of OH2.5 snapshots and milestones.

Please be aware that the Hue binding has been moved to https://github.com/openhab/openhab2-addons/.