rule "switch av receiver onoff"
when
Channel "harmonyhub:hub:wohnzimmer:activityStarting" triggered Radio
then
sendCommand(Z_way_switch_WallPlug3, ON)
createTimer(now.plusSeconds(120), [ | sendCommand(HarmonyWohnzimmerActivity, Radio) ])
logInfo("Harmony", "Hub is setting to Radio...")
end
But the harmony activity is not starting. What do I wrong???
2019-02-26 19:29:30.239 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarting triggered Radio
2019-02-26 19:29:33.617 [ome.event.ItemCommandEvent] - Item 'Z_way_switch_WallPlug3' received command ON
2019-02-26 19:29:33.626 [nt.ItemStatePredictedEvent] - Z_way_switch_WallPlug3 predicted to become ON
2019-02-26 19:29:43.688 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarted triggered Radio
But this harmony events are coming from my remote…i want to retrigger the activity “Radio”
Error
2019-02-26 19:43:15.918 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'switch av receiver onoff': The name 'Radio' cannot be resolved to an item or type; line 20, column 48, length 5
rule "switch av receiver onoff"
when
Channel "harmonyhub:hub:wohnzimmer:activityStarting" triggered Radio
then
sendCommand(Z_way_switch_WallPlug3, ON)
sendCommand(HarmonyWohnzimmerActivity, "Radio")
logInfo("Harmony", "Hub is setting to Radio...")
end
In the event log I see
2019-02-26 19:29:30.239 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarting triggered Radio
2019-02-26 19:29:33.617 [ome.event.ItemCommandEvent] - Item ‘Z_way_switch_WallPlug3’ received command ON
2019-02-26 19:29:33.626 [nt.ItemStatePredictedEvent] - Z_way_switch_WallPlug3 predicted to become ON
2019-02-26 19:29:43.688 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarted triggered Radio
2019-02-26 20:29:30.239 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarting triggered Radio
2019-02-26 20:29:33.617 [ome.event.ItemCommandEvent] - Item ‘Z_way_switch_WallPlug3’ received command ON
2019-02-26 20:29:33.626 [nt.ItemStatePredictedEvent] - Z_way_switch_WallPlug3 predicted to become ON
2019-02-26 20:29:43.688 [vent.ChannelTriggeredEvent] - harmonyhub:hub:wohnzimmer:activityStarted triggered Radio