OpenHab rule not reliably triggered by hue tap

Hi all,

i have the problem that my openhab rules, wich invole a philips hue tap switch, dont get reliable triggered (sometimes i have to push 5-6 times to get a result).

i can see in the events.log that the hue tap gets updated, but the rule dont get triggered.

i use openhab 2.5.5 (with 2.5.4 and 2.5.0 i had the same problem) on docker with influxdb as persistence (both on synology host).

my rule looks like this:

        rule "Licht Wohnzimmer"
        when
            Channel "hue:0830:90f326aa:tap_switch_event" triggered 34.0
            
        then
            WZ_Licht_Rule.sendCommand(if (WZ_Licht_Rule.state == OFF) ON else OFF)
        end

the rule that then get triggerd is this:

        rule "Licht Wohnzimmer Starten"
        when
            Item WZ_Licht_Rule changed to ON
        then
            WZ_Decke_RGB_Color.sendCommand("27,57,100")
            WZ_Vitrine_Steckdose.sendCommand(ON)
            WZ_Licht_Rule.sendCommand(ON)
            WZ_Ambient_RGB_Color.sendCommand("0,100,50")
            HueGo1Effect.sendCommand(ON)
        end

        rule "Licht Wohnzimmer Beenden"
        when
            Item WZ_Licht_Rule changed to OFF
        then
            WZ_Decke_RGB_Color.sendCommand(OFF)
            WZ_Ambient_RGB_Color.sendCommand(OFF)
            WZ_Vitrine_Steckdose.sendCommand(OFF)
            WZ_Licht_Rule.sendCommand(OFF)
            WZ_Mood_Licht_Rule.sendCommand(OFF)
            WZ_TV_Lightbar_Left_Color.sendCommand(OFF)
            WZ_TV_Lightbar_Right_Color.sendCommand(OFF)
            HueGo1.sendCommand(OFF)
        end

with BasicUI or android app, i dont have the problem. only with the hue tap.

has anyone an idea for this?

thanks

We can’t see. Share please.
Your first rule looks like it will always issue a command when triggered, so we’d see that in your events.log as well.

Test rule here might interest you

1 Like

Very strange, today the rules are back to normal and get triggered every time i hit the hue tap :confused:

in the events.log i get entries like this, but the rule does not get triggered:

2020-05-13 16:58:47.465 [vent.ItemStateChangedEvent] - hue_0830_90f326aa_last_updated changed from 2020-05-13T16:58:43.000+0000 to 2020-05-13T16:58:46.000+0000

maybe the synology (DS718+) isn’t the best docker host?

That’s an Item change event log. Item.

Your rule is triggered by a Channel event. Channel

These things have nothing much to do with each other.

Damn…ok, it isn’t in the logs…

any idea why it is now back to normal?

I don’t know. What “it” is not in the logs? What “it” is back to normal, and what does normal mean?