Closed Faisalthe01 closed 1 year ago
Have you tried using different keycode for power off?
In the accessory config you can add: "poweroff" : "KEYCODE_POWER"
And then if it's doesn't work, try other key for example: "KEYCODE_SLEEP" or "KEYCODE_SOFT_SLEEP".
Different android device sometimes use different keycode, see other keycodes possibility in this documentation https://developer.android.com/reference/android/view/KeyEvent
Have you tried using different keycode for power off?
In the accessory config you can add:
"poweroff" : "KEYCODE_POWER"
And then if it's doesn't work, try other key for example: "KEYCODE_SLEEP" or "KEYCODE_SOFT_SLEEP".Different android device sometimes use different keycode, see other keycodes possibility in this documentation https://developer.android.com/reference/android/view/KeyEvent
Thanks that power off worked to put it in sleep mode from Home App tile.
how about the other one where it doesn't turn on from Home App tile and says Wake On Lan Failed?
Have you tried using different keycode for power off? In the accessory config you can add:
"poweroff" : "KEYCODE_POWER"
And then if it's doesn't work, try other key for example: "KEYCODE_SLEEP" or "KEYCODE_SOFT_SLEEP". Different android device sometimes use different keycode, see other keycodes possibility in this documentation https://developer.android.com/reference/android/view/KeyEventThanks that power off worked to put it in sleep mode from Home App tile.
how about the other one where it doesn't turn on from Home App tile and says Wake On Lan Failed?
@dwaan all good bro, I removed the "mac" from config and it is now waking up normally. and i had a chance to visit your website and see your web designs and just wanted to say I loved your designs, great work!
Describe the bug I am using Chromecast with Google TV (Android 12). If i turn off from Home app tile, it fails to turn off (shows in Homebridge logs) but if i turn off my TV (connected with HDMI-CEC) then the Google TV goes into sleep mode (shows in homebridge logs) similarly, if i turn on Google TV from Home app tile, it fails to wake up (shows in logs) but if i turn on my TV then it wakes up (shows in logs)
Expected behavior Sleep mode when i turn off from Home app, and wake up when i turn on from Home app
Log output
Device (please complete the following information): Chromecast with Google TV
Additional context Add any other context about the problem here.
My config