Trying to send raw commands to my receiver with the following rule
rule “Watch Tv Power”
when
Item WatchTvControl received command
then
switch(receivedCommand) {
case “TVWatchOn”: {
GC100_IR_ITV.sendCommand(“GC100_IR_ITV_POWER_ON”)
GC100_IR_SAMSUNG.sendCommand(“GC100_IR_SAMSUNG_POWER_ON”)
val onkyoActions = getActions(“onkyo”,“onkyo:TX-NR414:020c7544-5476-0074-5a0e-007854742c58”)
onkyoActions.sendRawCommand(“PWR”, “01”)
}
case “TVWatchOff”: {
GC100_IR_ITV.sendCommand(“GC100_IR_ITV_POWER_OFF”)
GC100_IR_SAMSUNG.sendCommand(“GC100_IR_SAMSUNG_POWER_OFF”)
val onkyoActions = getActions(“onkyo”,“onkyo:TX-NR414:020c7600-5476-0074-5a0e-007854742c58”)
onkyoActions.sendRawCommand(“PWR”, “00”)
}
this is my things file
onkyo:TX-NR414:020c7600-5476-0074-5a0e-0078547544c58 [ipAddress=“10.112.192.1”, port=60128, refreshInterval=30
I receive this error in the log
2019-05-12 15:23:07.758 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Watch Tv Power’: ‘sendRawCommand’ is not a member of ‘org.eclipse.smarthome.core.thing.binding.ThingActions’; line 20, column 2, length 40
I don’t understand what this error means. Hope anyone can