- Platform information:
- Hardware: CPUArchitecture/RAM/storage Raspberry 5 4GB Ram
- OS: what OS is used and which version Raspberry Original
- Java Runtime Environment: which java platform is used and what version 21
- openHAB version: 5.1.3
- Issue of the topic: please be detailed explaining your issue
- Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
- If logs where generated please post these here using code fences:
I gave up on the Onkyo Binding because it was just too unreliable. I’ve now switched to MQTT, which works fine so far—except that in Google Home, selecting the TV input (i.e., the source) doesn’t work. Everything else works fine. Here are my settings and everything Claude and I have already tried:
onkyo.things (MQTT Setup):
[quote]Bridge mqtt:broker:onkyo-broker “Onkyo MQTT Broker” [
host=“192.168.1.201”, port=1883, secure=false,
clientid=“openhab-onkyo”, keepAlive=30
] {
Thing topic onkyo-bridge “Onkyo TX-SR 806” {
Channels:
Type switch : power “Power” [ stateTopic=“onkyo/power”, commandTopic=“onkyo/power/set”, on=“ON”, off=“OFF” ]
Type dimmer : volume “Volume” [ stateTopic=“onkyo/volume”, commandTopic=“onkyo/volume/set”, min=0, max=80, step=1 ]
Type string : input “Input” [ stateTopic=“onkyo/input”, commandTopic=“onkyo/input/set” ]
Type switch : mute “Mute” [ stateTopic=“onkyo/mute”, commandTopic=“onkyo/mute/set”, on=“ON”, off=“OFF” ]
}
"
Items (via UI/REST — equivalent .items syntax):
[quote]Group gOnkyo “Onkyo TX-SR 806” { ga=“TV” }
Switch Onkyo_Power “Onkyo Power” (gOnkyo) { ga=“tvPower”, channel=“mqtt:topic:onkyo-broker:onkyo-bridge:power” }
Dimmer Onkyo_Volume “Onkyo Volume” (gOnkyo) { ga=“tvVolume” [volumeMaxLevel=100], channel=“mqtt:topic:onkyo-broker:onkyo-bridge:volume” }
Switch Onkyo_Mute “Onkyo Mute” (gOnkyo) { ga=“tvMute”, channel=“mqtt:topic:onkyo-broker:onkyo-bridge:mute” . "
// This item receives raw hex codes from MQTT: “10” = DVD, “23” = CD, etc.
// Current state: “10”
String Onkyo_Input “Onkyo Input” (gOnkyo) { channel=“mqtt:topic:onkyo-broker:onkyo-bridge:input” }
// Friendly name item, updated by rule (state: “dvd”)
String Onkyo_InputName “Onkyo Eingang” (gOnkyo)[/quote]
Here’s what I’ve tried (all without success)![]()
[quote]// Versuch 1 - tvInput auf Onkyo_InputName (state=“dvd”)
{ ga=“tvInput” [supportedInputs=“vcr=VCR,dvd=DVD Chromecast,cd=CD,…”] }
// Versuch 2 - tvInput auf Onkyo_Input mit Hex-Keys (state=“10”)
{ ga=“tvInput” [supportedInputs=“10=DVD Chromecast,23=CD,…”] }
// Versuch 3 - mode auf Onkyo_InputName
{ ga=“mode” [modes=“vcr=vcr:dvr,dvd=dvd:chromecast,…”] }
// Versuch 4 - tvChannel
{ ga=“tvChannel” }[/quote]
“occurred”. Power, Volume, and Mute are working perfectly.
Question: How should the input item be configured correctly for tvInput to work in Google Home? What state value does Google Home expect, and in what format must supportedInputs be specified?
Setup: OpenHAB 5.1.3, Google Assistant Cloud Connector, MQTT Binding