cristian5th / homebridge-appletv

Configuration of pyatv and cmd4 for reading the Apple TV status in Homebridge
GNU General Public License v3.0
25 stars 2 forks source link

Perhaps your device is busy? #10

Open nerdspar opened 1 year ago

nerdspar commented 1 year ago

Hi. I was able to successfully pair my appletv with pyatv but am seeing the below errors when trying to use the Cmd4 plugin. Hoping someone can help.

[17/10/2022, 16:27:22] [Cmd4] Processing high priority queue "Get" entry: 106 isUpdate: true length: 0 [17/10/2022, 16:27:22] [Cmd4] getValue: accTypeEnumIndex:( 106 )-"On" function for: ATV Video Play cmd: bash /var/lib/homebridge/appletv_control.sh Get 'ATV Video Play' 'On' timeout: 5000 [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Play returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Power returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Play returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Power returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Video Play returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:22] [Cmd4] processsQueue returned false [17/10/2022, 16:27:22] [Cmd4] Scheduling Poll of index: 106 characteristic: On for: ATV Play timeout: 4000 interval: 5000 [17/10/2022, 16:27:22] [Cmd4] getValue: On function for: ATV Video Play returned an empty string "". Perhaps your device is busy? [17/10/2022, 16:27:23] [Cmd4] processsQueue returned false [17/10/2022, 16:27:23] [Cmd4] Scheduling Poll of index: 106 characteristic: On for: ATV Power timeout: 4000 interval: 5000

cristian5th commented 1 year ago

Hello.

I would say that there is some issue with the script. It is returning an empty string instead of a 0 or 1.

Please, try to enable the debug mode for the plugin configuration in Homebridge and paste your new log afterwards.