Uses python-broadlink
Based and inspired by BlackBeanControl
-
Update settings.ini with your configuration
-
Start python server.py
-
In your browser:
http://localhost:8080/learnCommand/lampon #learn command with name lampon
http://localhost:8080/sendCommand/lampon #send command with name lampon
- Added get temperature from supported devices (like RM2/Pro):
http://localhost:8080/getStatus/temperature
Returns:
{ "temperature": 22.2 }
*required JSON format suites homebridge-http-temperature plugin.
- Added support for A1 sensors (temperature, lights and etc..)
http://localhost:8080/a1/temperature
http://localhost:8080/a1/lights
http://localhost:8080/a1/noise
and etc..
Returns:
{ "temperature": 22.2 }
{ "lights": dark }
{ "noise": low }
and etc..
*required JSON format suites homebridge-http-temperature plugin.
- Get and Set status of devices having COMMANDon and COMMANDoff abilities
http://localhost:8080/sendCommand/lampon #automaticly set status of "lamp" to "on"
http://localhost:8080/getStatus/lamp #return lamp status as 0 or 1