Giter VIP home page Giter VIP logo

broadlink-http-rest's Introduction

Broadlink HTTP server/proxy with REST API

Supported devices: RM/RM2/RM Pro/RM3/BlackBean/A1

Uses python-broadlink

Based and inspired by BlackBeanControl

Example usage

  1. Update settings.ini with your configuration

  2. Start python server.py

  3. In your browser:

http://localhost:8080/learnCommand/lampon   #learn command with name lampon
http://localhost:8080/sendCommand/lampon    #send command with name lampon
  1. 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.

  1. 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.

  1. 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

broadlink-http-rest's People

Contributors

bigpresh avatar radinsky avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.