luisiam / homebridge-cmdswitch2

CMD Plugin for HomeBridge (API 2.0): https://github.com/nfarina/homebridge
Apache License 2.0
177 stars 29 forks source link

What do you use this plugin for? #25

Open nicknicknickos opened 6 years ago

nicknicknickos commented 6 years ago

I've recently installed this plugin (which is great by the way!). I'm wondering how else I can use this - and I want to see what creative applications the community has come up with.

My usage involves turning on my AppleTV4 with a CURL command:

"platform": "cmdSwitch2", "name": "Apple TV", "switches": [{ "name": "TV", "on_cmd": "curl 'http://192.168.1.xx:3689/login?XXXXX'", "manufacturer": "Apple", "model": "Apple TV 4"

So, what do you do with this plugin?

DJay-X commented 6 years ago

@nicknicknickos Thanks for your comment. I like your use of the plugin. I would love to try it myself and hope for a little help. What do I have to do or in addition to install to controll my ATV4? Is this port always reachable and what is the login? 3689/login?XXXXX Questions over questions. ;) I hope not to bother. I'm relatively new to this. Thanks in advance for your help and reply.

Buy the way.. I use cmdswitch2 to control my Smarter iKettle 2.0 with the iBrew App https://github.com/Tristan79/iBrew

{ "platform": "cmdSwitch2", "switches": [{ "name": "Wasserkocher", "on_cmd": "/usr/local/bin/ibrew start", "off_cmd": "/usr/local/bin/ibrew stop", "state_cmd": "/usr/local/bin/ibrew status | grep 'busy'", "manufacturer": "iBrew", "model": "iBrew iKettle 2.0", "serial": "xxx", "polling": true, "interval": 1

                           }]
              }
deanlyoung commented 6 years ago

This thread is helpful, but specifically this comment that directs you to find your serial number:

http://reddit.com/r/HomeKit/comments/6c1od4/if_apple_doesnt_announce_control_of_the_appletv/di48kh6