Broadlink SP mini switch

Moderator: leecollings

Post Reply
pabmardo
Posts: 2
Joined: Thursday 21 January 2016 19:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Spain
Contact:

Broadlink SP mini switch

Post by pabmardo »

Hi all, I have received a wifi switch from broadlink and wanted to control it as I am doing with the Orvibo S20 from domoticz... the problem is I can not find anything outside Android to control them... HAve found the SDK for IOS and Android and some githubs projects... but nothing I can use from the raspberry pi... Any ideas?? any intention to integrate broadlink products?? they are quality and cheap and seems to me there will be plenty of people using them.
Thanks a lot
Jonkerfrisjes
Posts: 3
Joined: Wednesday 27 July 2016 12:57
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5877
Location: Holland
Contact:

Re: Broadlink SP mini switch

Post by Jonkerfrisjes »

Hello,

I have the same question for a TC2 switch from Broadlink. Is there a way to find out the code for these device.? Without the RM controller.
Broadlink has many great items.

Regards
Andre
kalinkamaen
Posts: 52
Joined: Sunday 04 January 2015 15:57
Target OS: Windows
Domoticz version: 2022.2
Location: Norway
Contact:

Re: Broadlink SP mini switch

Post by kalinkamaen »

Hello sir.

I have broadlink running with Eventghost with this pluguin:

http://www.eventghost.org/forum/viewtop ... 6f3654b786

The downside is that you need to have a android device. I use my old phone for this. And instal this ap :

http://rm-bridge.fun2code.de/

You can use this code to switch on or off a switch on domoticz!

Code: Select all

HOST = "192.168.1.21"
PORT = 80
DEVICE_NUMBER = 10
LIGHTS_ON = True

import urllib2
from urllib2 import HTTPError, URLError

ERROR_REASON = (
    "We failed to reach a server.\n"
    "Reason: %s"
)

ERROR_CODE = (
    "The server couldn't fulfill the request.\n"
    "Error code: %d"
)


if LIGHTS_ON:
    LIGHTS = 'On'
else:
    LIGHTS = 'Off'
URL = "http://%s:%d/json.htm?type=command&param=switchlight&idx=%s&switchcmd=%s" % (HOST, PORT, str(DEVICE_NUMBER), LIGHTS)

try:
    urllib2.urlopen(URL)
except HTTPError as httpError:
    eg.PrintError(ERROR_REASON % httpError.reason)
    eg.PrintError(ERROR_CODE % httpError.code)
except URLError as urlError:
    eg.PrintError(ERROR_REASON % urlError.reason)
Forum thread found here:

http://www.eventghost.org/forum/viewtop ... 6f3654b786
Windows 10, Domoticz 14784
drbrains
Posts: 8
Joined: Sunday 26 February 2017 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.6799
Contact:

Re: Broadlink SP mini switch

Post by drbrains »

I realize this is an old post, but look here to get started:

https://github.com/mjg59/python-broadlink

It should work for the SP2/3 and MP1. Maybe it's compatible.
xxLeoxx93
Posts: 16
Joined: Wednesday 22 March 2017 21:48
Target OS: Windows
Domoticz version:
Contact:

Re: Broadlink SP mini switch

Post by xxLeoxx93 »

drbrains wrote:I realize this is an old post, but look here to get started:

https://github.com/mjg59/python-broadlink

It should work for the SP2/3 and MP1. Maybe it's compatible.
Hello,

is there any guide how to use the .py script in domoticz?

Thank you!
ijobain
Posts: 7
Joined: Friday 09 January 2015 9:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Broadlink SP mini switch

Post by ijobain »

xxLeoxx93 wrote:
drbrains wrote:I realize this is an old post, but look here to get started:

https://github.com/mjg59/python-broadlink

It should work for the SP2/3 and MP1. Maybe it's compatible.
Hello,

is there any guide how to use the .py script in domoticz?

Thank you!
Read this
https://www.domoticz.com/forum/viewtopi ... 40#p108350
Logan923
Posts: 1
Joined: Monday 16 October 2017 12:36
Target OS: Linux
Domoticz version:
Contact:

Re: Broadlink SP mini switch

Post by Logan923 »

levels in between 195 and also 205 levels. After that coffeemachines The Technivorm is hand-built in the Netherlands.
Winsor421
Posts: 1
Joined: Friday 29 December 2017 8:38
Target OS: Linux
Domoticz version:
Contact:

Re: Broadlink SP mini switch

Post by Winsor421 »

Also the graphical details are amazing as well as you will certainly Nintendo 3DS Emulator You can appreciate Terraria together with your close friends.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests