Martvvliet / homebridge-denon-heos

Homebridge plugin for denon/marantz receivers. Possible to add the receivers as TV service, which enables the possibility to use the remote on the receiver and switch inputs with one block in your homekit screen. Als supports absolute volume control through a light bulb.
MIT License
48 stars 11 forks source link

homebridge slowdown events because of callback #87

Open yahms opened 3 years ago

yahms commented 3 years ago

so ive been using homebridge-denon combined with homebridge-switcheroo for input switching (ie http://10.8.16.152/MainZone/index.put.asp?cmd0=PutZone_InputFunction%2FSAT%2FCBL

this plugin however looks to give me both the volume control and input switching while presenting to homekit as an actual receiver! awesome.

however... when i power on from Home app, i get these events logged in homebridge:

[5/16/2021, 8:31:23 PM] [homebridge-denon-heos] This plugin slows down Homebridge. The write handler for the characteristic 'Active' on the accessory 'Marantz sr5007 CD02' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.

The receiver also shows the updating circle animation for a few seconds, then about when the receiver relays click in and the TV image shows the amp's current input, in the home app the receiver shows as on/unresponsive, with the little i icon. at that point the receiver is actually on, and the input switching works via this plugin, if i power off via that tile, it turns off fine too. just doesnt seem right?

here is the config:

{ "debugToInfo": false, "devices": [ { "name": "Marantz sr5007", "ip": "10.8.16.152", "port": "80", "zone": 1, "switchInfoMenu": true, "defaultInputID": "DVD", "inputs": [ { "inputID": "DVD", "name": "Apple TV" }, { "inputID": "CBL/SAT", "name": "Raspberry Pi" }, { "inputID": "GAME", "name": "Raspberry Pi" } ] } ], "volumeControl": [ { "name": "Marantz volume", "ip": "10.8.16.152", "zone": 1, "controlType": "fan", "port": "80", "volumeLimit": 60 } ], "platform": "DenonAVR" }

(lol ive realised just now i need to swap CBL/SAT for SAT/CBL coz thats how the http api names it)

doc8sh commented 3 years ago

I am receiving this same error using this plugin with my Marantz NR1504. It seems the receiver cannot answer the status request soon enough, so this error occurs. Setting Polling Interval to 6 (sec) did the trick for me.

Unfortunately this makes the volume control less usable (because of the doubled waiting time) so I decided to leave this option at 3 sec at the price of the given error.

Anyway: Thanks for the awesome features this plugin is giving to me!