i0null / homebridge-lgtv-2012

LG TV 2012 plugin for Homebridge
MIT License
6 stars 2 forks source link

Mute on command #2

Open kirtilli opened 7 years ago

kirtilli commented 7 years ago

Hi, When i on tv, it just "mute" Does it expected behaivour? İs on/off working?

i0null commented 7 years ago

Hi, great to hear you got it paired. Unfortunately LG does not offer this functionality (or certainly not on the 2012 models from what I can tell) also no WOL support. I fixed a bug to prevent the TV turning off while testing in version v0.2.0, so this should work as expected.

The purpose of the on_command in the config is to customise what command is sent to the TV when on is toggled in HomeKit. The list of available commands is in https://github.com/i0null/node-lgtv-2012/blob/master/index.js.

The module could power on the TV using IR from a Rapsberry PI, but this would be limited use case as it would require interface compatibility and proximity to the TV.

kirtilli commented 7 years ago

Thank you for the prompt reply. Yes, I managed pairing.

It's great initiative, I'll be watching your work.

Best

felipesalomao commented 6 years ago

@i0null Thanks for your great work.. Do you know how can i send IR signal to turn on tv on your solution? its already turn off.. But as its powered off and dont support WOL, its not able to turn on using network.. So, i would like send IR command.. I also have RM-PRO plugin for homebridge (it have ir and rf).. I

i3laze commented 6 years ago

I would also “Feature Request” for allowing custom bash/python script as an “on_command”: “on_command”:”SCRIPT” (like MUTE) and some optional “script_path” parameter.

Currently, I can easily turn on my LG TV via HDMI from my Kodi box (which hosts HomeBridge), using ‘cec-client’ wrapped in a script. Script is bound to a key on remote. Although TV wakes itself on any Kodi activity anyway.