AlexanderBabel / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
46 stars 11 forks source link

"enableAutoOff": true, #7

Closed djrams10 closed 5 years ago

djrams10 commented 5 years ago

Hello, I set up a swtich tv and I would like to activate the function "enableAutoOff": true I need it to turn off quickly. Could you help me because it worked with the switch but not with tv. I show you my config file. Thanks

      "platform": "BroadlinkRM",

"name": "Broadlink RM", "accessories": [ { "accessory": "Broadlink RM Learner", "type": "learn-code", "name": "Learn IR", "host": "192.168.86.36" }, { "name": "Television", "type": "tv", "enableAutoOff": true, "onDuration": 1, "data": { "on": "260068001b1e1c1e391f1b1f1b1e1c1e1c1e1b1f1b3b1c1e38201b000b961b1f1b1f381f1b1f1b1f1b1f1b1f1b1f1b3b1b1f381f1b000b971b1e1c1e391f1b1f1b1e1c1e1c1e1b1f1b3b1c1e38201b000b961b1f1b1f381f1b1f1b1f1b1f1b1f1b1f1b3b1b1f381f1b000d05 " }

S474N commented 5 years ago

If you have type "tv", why do you want AutoOff? AutoOff is for switch/light/outlet.

djrams10 commented 5 years ago

because I can turn on my TV with the hdmi cec, which will be a problem because he does not know the state of my tv. I hope you understand me well. Do you think it's possible?

S474N commented 5 years ago

And has your TV ETH RJ45/WiFi?

djrams10 commented 5 years ago

ETH RJ45, why? it's a television of 2013. I use this plugin. https://github.com/gw-wiscon/homebridge-philipstv#readme . I can know the state, put it out, but I can not start it. That's why I need the broadlink plugin, but I would like it to be displayed as a tv.

kiwi-cam commented 5 years ago

The reason S474N asks is that this plugin uses pingIPAddress to monitor the TVs status. If you add this to your TV config with the host name or IP of your TV the status will update based on whether it’s on the network.

djrams10 commented 5 years ago

It would be really great !!! Could you give me an example of config.json to point me in the right direction? thank you in advance

djrams10 commented 5 years ago

What do you think?

"name": "Télévision", "type": "switch", "pingIPAddress": "192.168.86.123", "data": { "on": "260068001b1e1c1e391f1b1f1b1e1c1e1c1e1b1f1b3b1c1e38201b000b961b1f1b1f381f1b1f1b1f1b1f1b1f1b1f1b3b1b1f381f1b000b971b1e1c1e391f1b1f1b1e1c1e1c1e1b1f1b3b1c1e38201b000b961b1f1b1f381f1b1f1b1f1b1f1b1f1b1f1b3b1b1f381f1b000d05 " }

djrams10 commented 5 years ago

the pingIPAddress does not work with the "switchtv", it works with the "switch" but it turns on and off, until turn off the tv.

kiwi-cam commented 5 years ago

Try adding "pingIPAddressStateOnly": true, too.

djrams10 commented 5 years ago

thank you, it's done. All works with the switch, but can you confirm me, it does not work with type "TV". I tried and no reaction.

S474N commented 5 years ago

Type is "tv", not "TV".

djrams10 commented 5 years ago

I identified the problem. The pingadress check does not go back to the homekit directly. I am forced to open the home app to update and interop the ip. Could you help me solve this problem? Thank you

djrams10 commented 5 years ago

after a long search, I ended up reinstalling everything and it works. the status goes back to homekit. Thank you all