Closed Jordenjj closed 2 years ago
can You try latest beta 3.15.11-beta.3
This issue is still present.
In an automation selecting any input has no effect when the device is turned on - it comes up with the input previously selected when the device was powered down.
Please test latest beta.1 and let me know
Thank you for the quick response.
Tested 3.16.11-beta3 briefly and so far seems to respond correctly. I'll make a few other test automations this weekend to provide better coverage and update with the results.
Still looking at this and will hopefully have definitive confirmation later today.
This morning it looked like something was still broken with the following results:
Available AVR's inputs: Shield (settop box) and Xbox (Game console)
Testing automation that powers on AVR and selects XBOX (game) input:
I checked the logs and I believe what I'm seeing is the result of a crash of Homebridge due to a value out of range in your other XBOX plugin (I'll open a case in that repo). This causes Homebridge to restart and when it reloads all the plugins, the AVR seems to switches back to the Shield input. I don't know how/why it does this as I don't see an explicit "set" in the logs, only a "get" - I'll post log details below.
Console output mentioned in above post:
`[2/12/2022, 2:02:35 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Connected.
[2/12/2022, 2:02:35 PM] [XboxTv] -------- Xbox Console --------
[2/12/2022, 2:02:35 PM] [XboxTv] Manufacturer: Microsoft
[2/12/2022, 2:02:35 PM] [XboxTv] Model: Xbox One X
[2/12/2022, 2:02:35 PM] [XboxTv] Serialnr: FD00XXXXXXXXX203
[2/12/2022, 2:02:35 PM] [XboxTv] Firmware: 10.0.22000
[2/12/2022, 2:02:35 PM] [XboxTv] ----------------------------------
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, get Input successful, name: Shield, reference: MPLAY
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: OFF
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?SIGAME
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, set Input successful, name: XboxOne, reference: SIGAME
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?ZMON
[2/12/2022, 2:02:35 PM] [DenonTv] Device: 192.168.8.113 AVR, set Power state successful, state: ZMON
[2/12/2022, 2:05:20 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Disconnected.
[2/12/2022, 2:05:20 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: ON
[2/12/2022, 2:05:20 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?ZMOFF
[2/12/2022, 2:05:20 PM] [DenonTv] Device: 192.168.8.113 AVR, set Power state successful, state: ZMOFF
[2/12/2022, 2:05:32 PM] RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 11. Received 12
at boundsError (internal/buffer.js:83:9)
at Buffer.readUInt32BE (internal/buffer.js:306:5)
at STRUCTURE.readUInt32 (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/structure.js:83:34)
at Object.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:43:54)
at Object.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:175:67)
at MESSAGE.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74)
at PACKER.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37)
at Socket.
┌────────────┐
│ 865-84-890 │
└────────────┘
[2/12/2022, 2:05:44 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Authorized and Web Api enabled.
[2/12/2022, 2:05:44 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 814B) is running on port 51325.
[2/12/2022, 2:05:44 PM] Family Room TV 76C9 is running on port 46383.
[2/12/2022, 2:05:44 PM] Please add [Family Room TV 76C9] manually in Home app. Setup Code: 865-84-890
[2/12/2022, 2:05:44 PM] Xbox Console 0F9A is running on port 43337.
[2/12/2022, 2:05:44 PM] Please add [Xbox Console 0F9A] manually in Home app. Setup Code: 865-84-890
[2/12/2022, 2:05:44 PM] [homebridge-ezviz] Launched child bridge with PID 34111
[2/12/2022, 2:05:44 PM] [DenonTv] Device: 192.168.8.113 AVR, Connected.
[2/12/2022, 2:05:44 PM] [DenonTv] -------- AVR --------
[2/12/2022, 2:05:44 PM] [DenonTv] Manufacturer: Marantz
[2/12/2022, 2:05:44 PM] [DenonTv] Model: AV7703
[2/12/2022, 2:05:44 PM] [DenonTv] Zones: 3
[2/12/2022, 2:05:44 PM] [DenonTv] Control: Main Zone
[2/12/2022, 2:05:44 PM] [DenonTv] Firmware: 00
[2/12/2022, 2:05:44 PM] [DenonTv] Api version: 0301
[2/12/2022, 2:05:44 PM] [DenonTv] Serialnr: 0005CD6DD818
[2/12/2022, 2:05:44 PM] [DenonTv] ----------------------------------
[2/12/2022, 2:05:44 PM] AVR 0DE4 is running on port 39127.
[2/12/2022, 2:05:44 PM] Please add [AVR 0DE4] manually in Home app. Setup Code: 865-84-890
[2/12/2022, 2:05:44 PM] Registering platform 'homebridge-ezviz.EZVIZ'
[2/12/2022, 2:05:44 PM] [homebridge-ezviz] Loaded homebridge-ezviz v1.0.2 child bridge successfully
[2/12/2022, 2:05:44 PM] Loaded 1 cached accessories from cachedAccessories.0E29192A0068.
[2/12/2022, 2:05:44 PM] [homebridge-ezviz] Configuring accessory Front Doorbell
[2/12/2022, 2:05:44 PM] Homebridge v1.4.0 (HAP v0.10.0) (homebridge-ezviz) is running on port 36958.
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Power state successful: OFF
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Current Media state successful: STOP
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Target Media state successful: STOP
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Mute successful: ON
[2/12/2022, 2:05:45 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Volume successful: 0
[2/12/2022, 2:05:45 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: OFF
[2/12/2022, 2:05:45 PM] [DenonTv] Device: 192.168.8.113 AVR, get Input successful, name: Shield, reference: MPLAY
[2/12/2022, 2:05:45 PM] [DenonTv] Device: 192.168.8.113 AVR, get Picture mode: 0
[2/12/2022, 2:05:45 PM] [DenonTv] Device: 192.168.8.113 AVR, get Mute state successful: ON
[2/12/2022, 2:05:45 PM] [DenonTv] Device: 192.168.8.113 AVR, get Volume level successful: -80 dB
[2/12/2022, 2:05:49 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Connected.
[2/12/2022, 2:05:49 PM] [XboxTv] -------- Xbox Console --------
[2/12/2022, 2:05:49 PM] [XboxTv] Manufacturer: Microsoft
[2/12/2022, 2:05:49 PM] [XboxTv] Model: Xbox One X
[2/12/2022, 2:05:49 PM] [XboxTv] Serialnr: FD00XXXXXXXXX203
[2/12/2022, 2:05:49 PM] [XboxTv] Firmware: 10.0.22000
[2/12/2022, 2:05:49 PM] [XboxTv] ----------------------------------
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, get Input successful, name: XboxOne, reference: GAME
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: OFF
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?SIGAME
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, set Input successful, name: XboxOne, reference: SIGAME
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?ZMON
[2/12/2022, 2:05:49 PM] [DenonTv] Device: 192.168.8.113 AVR, set Power state successful, state: ZMON
[2/12/2022, 2:09:01 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Disconnected.
[2/12/2022, 2:09:02 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: ON
[2/12/2022, 2:09:02 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?ZMOFF
[2/12/2022, 2:09:02 PM] [DenonTv] Device: 192.168.8.113 AVR, set Power state successful, state: ZMOFF
[2/12/2022, 2:09:11 PM] RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 126. Received 10710
at boundsError (internal/buffer.js:83:9)
at Buffer.readUInt16BE (internal/buffer.js:329:5)
at STRUCTURE.readUInt16 (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/structure.js:70:34)
at Object.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:132:60)
at MESSAGE.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/message.js:456:74)
at PACKER.unpack (/usr/lib/node_modules/homebridge-xbox-tv/src/packet/packer.js:47:37)
at Socket.
┌────────────┐
│ 865-84-890 │
└────────────┘
[2/12/2022, 2:09:23 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Authorized and Web Api enabled. [2/12/2022, 2:09:23 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 814B) is running on port 51325. [2/12/2022, 2:09:23 PM] Family Room TV 76C9 is running on port 44901. [2/12/2022, 2:09:23 PM] Please add [Family Room TV 76C9] manually in Home app. Setup Code: 865-84-890 [2/12/2022, 2:09:23 PM] Xbox Console 0F9A is running on port 41573. [2/12/2022, 2:09:23 PM] Please add [Xbox Console 0F9A] manually in Home app. Setup Code: 865-84-890 [2/12/2022, 2:09:24 PM] [DenonTv] Device: 192.168.8.113 AVR, Connected. [2/12/2022, 2:09:24 PM] [DenonTv] -------- AVR -------- [2/12/2022, 2:09:24 PM] [DenonTv] Manufacturer: Marantz [2/12/2022, 2:09:24 PM] [DenonTv] Model: AV7703 [2/12/2022, 2:09:24 PM] [DenonTv] Zones: 3 [2/12/2022, 2:09:24 PM] [DenonTv] Control: Main Zone [2/12/2022, 2:09:24 PM] [DenonTv] Firmware: 00 [2/12/2022, 2:09:24 PM] [DenonTv] Api version: 0301 [2/12/2022, 2:09:24 PM] [DenonTv] Serialnr: 0005CD6DD818 [2/12/2022, 2:09:24 PM] [DenonTv] ---------------------------------- [2/12/2022, 2:09:24 PM] AVR 0DE4 is running on port 34437. [2/12/2022, 2:09:24 PM] Please add [AVR 0DE4] manually in Home app. Setup Code: 865-84-890 [2/12/2022, 2:09:24 PM] [homebridge-ezviz] Launched child bridge with PID 34149 [2/12/2022, 2:09:24 PM] Registering platform 'homebridge-ezviz.EZVIZ' [2/12/2022, 2:09:24 PM] [homebridge-ezviz] Loaded homebridge-ezviz v1.0.2 child bridge successfully [2/12/2022, 2:09:24 PM] Loaded 1 cached accessories from cachedAccessories.0E29192A0068. [2/12/2022, 2:09:24 PM] [homebridge-ezviz] Configuring accessory Front Doorbell [2/12/2022, 2:09:24 PM] Homebridge v1.4.0 (HAP v0.10.0) (homebridge-ezviz) is running on port 36958. [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Power state successful: OFF [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Input successful, input: Screensaver, reference: Xbox.IdleScreen_8wekyb3d8bbwe!Xbox.IdleScreen.Application, product Id: Screensaver [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Current Media state successful: STOP [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Target Media state successful: STOP [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Mute successful: ON [2/12/2022, 2:09:25 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, get Volume successful: 0 [2/12/2022, 2:09:25 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: OFF [2/12/2022, 2:09:25 PM] [DenonTv] Device: 192.168.8.113 AVR, get Input successful, name: Shield, reference: MPLAY [2/12/2022, 2:09:25 PM] [DenonTv] Device: 192.168.8.113 AVR, get Picture mode: 0 [2/12/2022, 2:09:25 PM] [DenonTv] Device: 192.168.8.113 AVR, get Mute state successful: ON [2/12/2022, 2:09:25 PM] [DenonTv] Device: 192.168.8.113 AVR, get Volume level successful: -80 dB [2/12/2022, 2:09:33 PM] [XboxTv] Device: 192.168.8.201 Xbox Console, Connected. [2/12/2022, 2:09:33 PM] [XboxTv] -------- Xbox Console -------- [2/12/2022, 2:09:33 PM] [XboxTv] Manufacturer: Microsoft [2/12/2022, 2:09:33 PM] [XboxTv] Model: Xbox One X [2/12/2022, 2:09:33 PM] [XboxTv] Serialnr: FD00XXXXXXXXX203 [2/12/2022, 2:09:33 PM] [XboxTv] Firmware: 10.0.22000 [2/12/2022, 2:09:33 PM] [XboxTv] ---------------------------------- [2/12/2022, 2:09:34 PM] [DenonTv] Device: 192.168.8.113 AVR, get Input successful, name: XboxOne, reference: GAME [2/12/2022, 2:09:34 PM] [DenonTv] Device: 192.168.8.113 AVR, get Power state successfull, state: ON [2/12/2022, 2:09:34 PM] [DenonTv] Device: 192.168.8.113 AVR, set Power state successful, state: ZMON [2/12/2022, 2:09:34 PM] [DenonTv] Device: 192.168.8.113 AVR, Send command: /goform/formiPhoneAppDirect.xml?SIGAME [2/12/2022, 2:09:34 PM] [DenonTv] Device: 192.168.8.113 AVR, set Input successful, name: XboxOne, reference: SIGAME`
Just noticed that as the XBOX plugin errors, it reports the XBOX going offline - this triggers another automation which turns the AVR off in my setup - might be why it resets to Shield input as the AVR inside the automation has Shield input selected in its off state.
Thanks for report this, for test please disconnect all HDMI from the AVR to be surely the other connected devices not take Aktion with it and test again. We need to be sure the plugin working correct with the AVR without other connected devices. In other thing please use all my plugin as child-bridge, this prevent the Homebridge crash if other plugin crashes.
I'll get back to you later in the day - I'm finding some problems at the moment which have nothing to do with Homebridge or plugins.
Sidenote: an Android 11 update to NVIDIA Shield (Experience 9) seems to have caused some serious CEC issues (among other stability problems). When this device is plugged in to HDMI and OFF, turning on the AVR will always reset its input to the Shield input - if it was turned off on another input, it can take a second or two before this switch happens - I think this may be undoing the input set of the Denon-TV plugin.
This is not normal behavior for my setup. The AVR has historically always turned on with the input set when it was last turned off and would not auto-switch inputs unless I turned on a CEC-enabled device.
I'm going to factory-reset the Shield which is going to take a little while, but that will hopefully clear this up and I can get more meaningful test results.
Hello, seems like this is relevant again since the last update. When starting from a scene, amp turns on and seems to switch back to input it had when off, not what it is in the scene.
Thank you.