Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe to power states? #7

Open
rcarmo opened this issue Nov 3, 2018 · 10 comments
Open

Subscribe to power states? #7

rcarmo opened this issue Nov 3, 2018 · 10 comments
Labels

Comments

@rcarmo
Copy link

rcarmo commented Nov 3, 2018

I can’t seem to be able to be notified when the TV is turned off. The homebridge webOS plugin seems to do that by poking at the port, but it would be nice to have an event made available to Node-Red.

@hobbyquaker
Copy link
Owner

The control node should output the current connection state as boolean payload.

@rcarmo
Copy link
Author

rcarmo commented Nov 4, 2018 via email

@hobbyquaker
Copy link
Owner

yes, it should

@rcarmo
Copy link
Author

rcarmo commented Nov 4, 2018 via email

@andrasg
Copy link

andrasg commented Feb 10, 2019

My tv (C8) it will almost always return true. I get no message when I hit the power button on the remote :(
Also, in this state I am able to wake it up by sending the POWER button through the button node. After a while the TV will go to deeper sleep where only the WOL packet will wake it up from.

Any way to detect these power states?

@cacherocks
Copy link

I confirm that the node sends only the "true" status, "false" does not receive. Please fix this so that both statuses work.

@hobbyquaker hobbyquaker added the bug label Sep 6, 2019
@marcelismus
Copy link

+1

@smartprohome
Copy link

Hello,

I also use contrib-lgtv and have the problem that after switching off the TV with the IR remote control and then switching the house to sleep, the device comes on again. This is done with the "turnOff" command in alternation ... on / off / on / off ... it works for a few minutes, then the TV falls into deep sleep.
How can I do that? The status is only toggled using the "Request" function with the URL "ssap: // system / turnOff".

Thank you in advance!

@smartprohome
Copy link

hello again, I recognized the problem and was able to find a solution for myself. New TV's have a setting in the menu that allows the TV to be switched on via an app. In the original LG app, there is only one button called "Switch off TV". This button toggles the on / off state if the setting in the TV's menu allows it to be switched on via apps. The TV remains permanently accessible via ping, as soon as the setting has been switched off, the node or ping is disconnected after approx. 30 seconds.

Problem solved.

@DiederikvandenB
Copy link

Bit of a late response, but for whomever is interested:

I noticed this issue too. Turns out, there TV broadcasts an empty appId string when the TV is powered off. This package checks whether the appId is defined, and if it's not, it does not broadcast anything further. This fixes it for me:

DiederikvandenB@67ef73d

You can use my package by running npm install DiederikvandenB/node-red-contrib-lgtv, but be aware that I deleted a lot of nodes that I was never going to use anyway. If you do still need those, just fork this repo and apply the fix yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants