Harmonyhub | trigger channel rule not working

  • Platform information:
    • Hardware: PI 4
    • OS: PI OS
    • Java Runtime Environment: 11
    • openHAB version: 3.1.0.M3

Hi,

If have the Harmony Hub Binding (3.1.0.M3) running on openHAB 3.1.0.M3

I’m trying to make a rule (via GUI) to switch on a switch item and shutdown my roller shutter when a activity is starting

In the event log I see:

2021-04-24 16:16:26.777 [INFO ] [openhab.event.ChannelTriggeredEvent ] - harmonyhub:hub:Achterkamer:activityStarting triggered SHIELD_TV

2021-04-24 16:17:05.870 [INFO ] [openhab.event.ChannelTriggeredEvent ] - harmonyhub:hub:Achterkamer:activityStarted triggered SHIELD_TV

2021-04-24 16:17:05.916 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HarmonyHubAchterkamer_CurrentActivity' changed from PowerOff to SHIELD TV

my rules

triggers:
  - id: "1"
    configuration:
      thingUID: harmonyhub:hub:Achterkamer
      event: SHIELD TV
      channelUID: harmonyhub:hub:Achterkamer:activityStarting
    type: core.ChannelEventTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      itemName: RFXCOMRfyRolluik_Shutter
      command: DOWN
    type: core.ItemCommandAction
triggers:
  - id: "1"
    configuration:
      event: SHIELD TV
      channelUID: harmonyhub:hub:Achterkamer:activityStarting
    type: core.ChannelEventTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      itemName: achterkamermediaplayer
      command: ON
    type: core.ItemCommandAction

The Items i use in the rules are selected from the GUI, therefore little chance of a typo

The commands used in the rules are ON and DOWN

I can’t find any Errors or Warnings regarding these rules in openhab.log file

Is there any way to check if these rules are triggered?
Can I, for example, save a log entry in the events.log?
Or do I need to make a seperate DSL script for it en use the rule only for triggering.

thanks for any info.

SHIELD TV that the rule is waiting for is not the same as SHIELD_TV that the trigger event carries.

The Item state isn’t involved here.

Yes, you can add logging in the script section of your UI rule in the language of your choice.
You might for example trigger from any event on that channel and log out what the event was.

Thanks Ross,

It never hurts a second per of eyes. Sometimes your so fixated on a piece of code that you overlook the little things. When I use the Item it’s SHIELD TV and when I use the trigger channel it’s SHIELD_TV

Of course adding the underscore was the solution.

Thanks again.