8000 New power state is not retrieved correctly after state change · Issue #16 · dominick-han/homebridge-tv-cec · GitHub
[go: up one dir, main page]

Skip to content

New power state is not retrieved correctly after state change #16

Open

Description

@CameronSmith93

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()?

Activity

  1. adamrzanek commented on May 20, 2020

    @adamrzanek

    Same issue here

  2. CameronSmith93 commented on May 21, 2020

    @CameronSmith93
    Author

    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

  3. adamrzanek commented on May 22, 2020

    @adamrzanek

    How can I apply this on my homebridge? Sorry to bother you but I’m newbie and I want this plugin so bad :)

  4. Samfox2 commented on May 22, 2020

    @Samfox2

    @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?

  5. adamrzanek commented on May 22, 2020

    @adamrzanek
  6. dominick-han commented on May 22, 2020

    @dominick-han
    Owner

    @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?

    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

  7. adamrzanek commented on May 24, 2020

    @adamrzanek

    @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?

    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

    It would be great!

  8. CameronSmith93 commented on Sep 11, 2020

    @CameronSmith93
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0