Einstein42 / myq-garage

Python Chamberlain Garage Door interface
MIT License
36 stars 16 forks source link

No support for other devices #14

Open k2hanson opened 7 years ago

k2hanson commented 7 years ago

I was looking through code and saw no support for light modules. I have one installed at my residence and determined looking at Attributes in the JSON file the device ID is 3. I cobbled it into my code along with the option to use ./myq-garage status [device ID] to check individual device statuses. I am NOT an expert coder so take anything I've done with a grain of salt and try not to laugh....I'm learning as I go....I attached my code. myq-garage_rev.txt

brbeaird commented 7 years ago

Yes, the light module is ID 3, and you simply send 1 or 0 to turn on or off. I have one working perfectly with the SmartThings integration: https://github.com/brbeaird/SmartThings_MyQ