You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New power state is not retrieved correctly after state change #16
Hi all, I've only just installed this plugin, but am having an issue with the detection of the new power state of the TV after changing the state using the Home app.
Take the below output as an example of the issue:
*toggle power On in Home app*
[5/20/2020, 12:16:51] [TV] Turning TV on
[5/20/2020, 12:17:21] [TV] TV is not turning on
*TV is marked as 'No Response' in the Home app*
*close and reopen Home app*
[5/20/2020, 12:17:43] [TV] Checking TV power status
[5/20/2020, 12:17:43] [TV] TV is on
The state is not detected correctly after changing until closing and reopening the Home app, forcing a re-check.
The same is true of toggling the power Off:
*toggle power Off in Home app*
[5/20/2020, 12:17:54] [TV] Turning TV fff
[5/20/2020, 12:18:24] [TV] TV is not turning off
*TV is marked as 'No Response' in the Home app*
*close and reopen Home app*
[5/20/2020, 12:19:28] [TV] Checking TV power status
[5/20/2020, 12:19:29] [TV] TV is off
Unfortunately I am not familiar enough with nodeJS to make the change myself, but is there a way to call the getPowerStatus() and return that result at the end of setPowerStatus()?
I actually got it working almost perfectly now - Samfox2 has forked this repository and made a number of improvements - by copying and pasting the contents of this index.js file and replacing the one I have within home bridge already, everything works perfectly except the following case:
When the TV is off, and HomeKit knows that the TV is off, and the TV is then switched on with a remote control, the change in state is not pushed back to HomeKit without opening the Home app on one of your devices which forces a re-check of the state.
Perhaps there is a way to get the state to automatically get checked every 1-5 seconds or so?
On 22 May 2020, at 22:09, Samfox2 ***@***.***> wrote:
@dominick-han my changes are quite proprietary for my TV but maybe I could merge them in any way. Are you still interested in updating this plugin?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
It would be excellent if you could add functionality to periodically retrieve the state of the television automatically and report to HomeKit rather than the current behaviour in which the state is retrieved when HomeKit is refreshed!
Activity
adamrzanek commentedon May 20, 2020
Same issue here
CameronSmith93 commentedon May 21, 2020
I actually got it working almost perfectly now - Samfox2 has forked this repository and made a number of improvements - by copying and pasting the contents of this index.js file and replacing the one I have within home bridge already, everything works perfectly except the following case:
When the TV is off, and HomeKit knows that the TV is off, and the TV is then switched on with a remote control, the change in state is not pushed back to HomeKit without opening the Home app on one of your devices which forces a re-check of the state.
Perhaps there is a way to get the state to automatically get checked every 1-5 seconds or so?
https://github.com/Samfox2/homebridge-tv-cec/blob/master/index.js
adamrzanek commentedon May 22, 2020
How can I apply this on my homebridge? Sorry to bother you but I’m newbie and I want this plugin so bad :)
Samfox2 commentedon May 22, 2020
@dominick-han my changes are quite proprietary for my TV but maybe I could merge them in any way. Are you still interested in updating this plugin?
adamrzanek commentedon May 22, 2020
dominick-han commentedon May 22, 2020
I can update the plugin, but I have no means of testing it (no devices)
I realized that the CEC implementation might be quite device specific, and my cheap 4K TV might be a bad example of CEC implementation
adamrzanek commentedon May 24, 2020
It would be great!
CameronSmith93 commentedon Sep 11, 2020
It would be excellent if you could add functionality to periodically retrieve the state of the television automatically and report to HomeKit rather than the current behaviour in which the state is retrieved when HomeKit is refreshed!