Git Product home page Git Product logo

smartthings-for-broadlink-rm-pro's Introduction

Smartthings-for-Broadlink-RM-Pro

Smartthings Handler for Broadlink RM Pro using RM Plugin, RM Bridge & Home Assistant

I refered to the below.

http://thingsthataresmart.wiki/index.php?title=URI_Switch

https://github.com/beckyricha/Broadlink-RM-SmartThings-Alexa

If you set up one of RM Plugin(with HTTP Bridge), RM Bridge and HA(Home Assistant), you can controll the Broadlink RM Pro with HTTP POST or GET method.

You can controll the Broadlink device with this handler at the Smarttings using the API. This handler doesn't use a smartapp and you can input device URI information at a PC or your phone.(I recommand you to use the PC)

Copy the contents(Broadlink Virtual Switch.groovy) and create new device handler at Smartthings IDE web.

Paste it to 'From code' and save. (If you are using the RM Bridge, you have to change the both methods from "POST" to "GET" in the code for On and Off)

Publish it 'for me'

Go to my device.

Create a device with '+ New Device'

Input Name, Label, Device Network ID as you want.

Select the 'Broadlink Virtual Switch' at the Type

Select the Location and Hub then click the 'Create'

Click the 'Preference(edit)'

You can input the information about the devices what you want to control


---If you are using the RM Plugin---

Usually ON and Off command URI is like the below.

http://192.168.0.33:9876/send?deviceMac=aabbccddeeff&codeId=11 (If you don't set up a Authentication)

http://192.168.0.33:9876/send?deviceMac=aabbccddeeff&codeId=12

http://yourID:[email protected]:9876/send?deviceMac=aabbccddeeff&codeId=11 (If you set up a Authentication)

http://yourID:[email protected]:9876/send?deviceMac=aabbccddeeff&codeId=12

ID & PW for RM Plugin or RM Bridge(Optional) : yourID:yourPassword (If you don't set up a Authentication, you may leave it as blank)

IP for RM Plugin or RM Bridge or HA(Required for all) : 192.168.0.33

Port(Required for all) : 9876

On Path(Required for all) : /send?deviceMac=aabbccddeeff&codeId=11

Off Path(Optional) : /send?deviceMac=aabbccddeeff&codeId=12 (If you don't want to use the off command, you can leave it as blank)

Entity ID of Body Data for HA(Required for HA) : Leave it as blank


---If your are using the RM Bridge---

As I mentioned, you have to change the method in the handler from "POST" to "Get"

Usually ON and Off command URI is like the below.

http://192.168.0.33:7474/code/refrigeratoron (If you don't set up a Authentication)

http://192.168.0.33:7474/code/refrigeratoroff

http://yourID:[email protected]:7474/code/refrigeratoron (If you set up a Authentication)

http://yourID:[email protected]:7474/code/refrigeratoroff

ID & PW for RM Plugin or RM Bridge(Optional) : yourID:yourPassword (If you don't set up a Authentication, you may leave it as blank)

IP for RM Plugin or RM Bridge or HA(Required for all) : 192.168.0.33

Port(Required for all) : 7474

On Path(Required for all) : /code/refrigeratoron

Off Path(Optional) : /code/refrigeratoroff (If you don't want to use the off command, you can leave it as blank)

Entity ID of Body Data for HA(Required for HA) : Leave it as blank

Attention : A blank must not be in the path. You can use a underscore.


---If you are using the Home Assistant---

Usually ON and Off command URI is like the below.

http://192.168.0.4:8123/api/services/switch/turn_on?api_password=password

http://192.168.0.4:8123/api/services/switch/turn_off?api_password=password

body data : {"entity_id","switch.livingroom_light"}

ID & PW for RM Plugin or RM Bridge(Optional) : Leave it as Blank

IP for RM Plugin or RM Bridge or HA(Required for all) : 192.168.0.4

Port(Required for all) : 8123

On Path(Required for all) : /api/services/switch/turn_on?api_password=password

Off Path(Optional) : /api/services/switch/turn_off?api_password=password (If you don't want to use the off command, you can leave it as blank)

Entity ID of Body Data for HA(Required for HA) : switch.livingroom_light

Attention : You have to input only entity id like script.audio_on, switch.kitchen_light, switch.bathroom_light


smartthings-for-broadlink-rm-pro's People

Contributors

af950833 avatar

Watchers

 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.