Bridge mqtt:broker:main "Main MQTT broker" @ "MQTT" [ host="localhost", secure=false, username="...", password="...", retainMessages=true ]
{
Thing topic Zigbee2mqtt_hue_dimmer1 "Zigbee2mqtt.io Philips HUE Dimmer 01" @ "Zigbee" {
Channels:
Type number : duration [ stateTopic="zigbee2mqtt/hue_dimmer1", transformationPattern="JSONPATH:$.duration" ]
Type number : counter [ stateTopic="zigbee2mqtt/hue_dimmer1", transformationPattern="JSONPATH:$.counter" ]
Type number : battery [ stateTopic="zigbee2mqtt/hue_dimmer1", transformationPattern="JSONPATH:$.battery"]
Type dimmer : dimmer [ stateTopic="zigbee2mqtt/hue_dimmer1", min=0, max=100, step=1, transformationPattern="JS:huewhite2openhab.js" ]
Type number : linkquality [ stateTopic="zigbee2mqtt/hue_dimmer1", transformationPattern="JSONPATH:$.linkquality" ]
Type string : action [ stateTopic="zigbee2mqtt/hue_dimmer1", transformationPattern="JSONPATH:$.action"]
}
}
String Hue_Dimmer1_Action { channel="mqtt:topic:main:Zigbee2mqtt_hue_dimmer1:action", autoupdate="false"}
Dimmer Hue_Dimmer1_Brightness <dimmablelight> { channel="mqtt:topic:main:Zigbee2mqtt_hue_dimmer1:dimmer"}
rule "GF_Office_TableLight update"
when
Item Hue_Dimmer1_Action received update
then
logInfo("command", "+")
end
This working well in 2.4 but after update to 2.5 rule fires several times, in most cases 6 times )
Log:
2019-11-20 16:14:38.268 [vent.ItemStateChangedEvent] - Hue_Dimmer1_Action changed from off-press to up-press
==> /var/log/openhab2/openhab.log <==
2019-11-20 16:14:38.274 [INFO ] [lipse.smarthome.model.script.command] - +
2019-11-20 16:14:38.276 [INFO ] [lipse.smarthome.model.script.command] - +
2019-11-20 16:14:38.279 [INFO ] [lipse.smarthome.model.script.command] - +
==> /var/log/openhab2/events.log <==
2019-11-20 16:14:38.280 [vent.ItemStateChangedEvent] - Hue_Dimmer1_Brightness changed from 22 to 41
==> /var/log/openhab2/openhab.log <==
2019-11-20 16:14:38.277 [INFO ] [lipse.smarthome.model.script.command] - +
2019-11-20 16:14:38.293 [INFO ] [lipse.smarthome.model.script.command] - +
2019-11-20 16:14:38.298 [INFO ] [lipse.smarthome.model.script.command] - +
I’m sure that only one mqtt payload happend (checks several times). Openhab and server restarted several times. Openhab updated via openhabian-config tool. Hoq I can fix this?