The Pioneer AVR and the Onkyo Binding listen to a command called INIT
, which gets fired upon initialization of the items file.
As per documentation these should get included into the binding config in the items file like this:
Switch living_avr_power "Multimedia" <multimedia> (media, devices) { pioneeravr="INIT:Wohnzimmer:POWER_QUERY, OFF:Wohnzimmer:POWER_OFF, ON:Wohnzimmer:POWER_ON" } // 35 Watt
Number living_avr_source "Quelle [%d]" (media) { pioneeravr="INIT:Wohnzimmer:SOURCE_QUERY, -1:Wohnzimmer:SOURCE_QUERY, INCREASE:Wohnzimmer:SOURCE_UP, DECREASE:Wohnzimmer:SOURCE_DOWN, *:Wohnzimmer:SOURCE_SET" }
Number living_avr_tuner_preset "Sender [%s]" (media) { pioneeravr="INIT:Wohnzimmer:TUNER_PRESET_QUERY, *:Wohnzimmer:TUNER_PRESET" }
I would like to send the INIT command from my rule, so that I can request a status update of these items, just like the initialization does. Unfortunately, neither the symbol INIT
nor the String "INIT"
get accepted by the sendCommand(<Item>, <String or Symbol>)
action.
Does anyone know how this can be achieved? Maybe I am just missing an Import to use this.
Why do I even want this, this is weird?
The Pioneer AVR binding completely stops polling the devices after a network error. After cutting the power from the media rack when not at home, and giving back its power (of course, fully automated), the Items never get updated again. They DO get updated though, if I send a command there. But I don’t want to change anything, but just request the status of these to get OpenHAB back into sync of what the physical AVR is doing.
Thank you very much for any ideas!