Another WIFi smart plug, but at 17 Euro is the best price that I know of.
Possible to integrate with HA?
Another WIFi smart plug, but at 17 Euro is the best price that I know of.
Possible to integrate with HA?
mine is arriving soon. Anyone tried it, maybe with the SP2 command?
It seams that sp3 is supported: https://github.com/mjg59/python-broadlink/blob/master/broadlink/init.py#L19
So you can try to set the type to sp3
config using this:
for anyone interested, broadlink api (I think)
is power consumption reading supported?
Not yet, but for the power consumption i use “Broadlink http bridge” in a old android phone and this line of code
Broadlink SP2 Consumo Frigorifico
which app exactly, I can’t find a “broadlink http bridge”, maybe you refer to an app “RM bridge”??
do you have the broadlink oficial app installed in the phone? must be there and configured.
yes, same result. I have sp3 switch
try this version (official by Ultron)
Sorry, but only SP2 have power meter, the SP3 is only switch.
Would it be possible to add this functionality in Hass for who has SP2?
Using this guide I’ve been able to get all the files from my android device and run the python app. The thing is, there’s nothing in my jsonSubIr file (the SP3 switch obviously doesn’t support Ir. So I figured I could use the jsonDevice file:
[{“id”:1,“mac”:“b4430eddef791a”,“type”:10024,“name”:“Kettle”,“password”:192343261234,“lock”:0,“new”:0,“longitude”:0,“latitude”:0,“subDevice”:0,“terminalId”:1,“publicKey”:[116,124,-36,-116,-22,52,12,28,-44,108,124,-92,-68,116,84,-52]}]
It has all the necessary info you can find in the API that Claudio has shared:
So after having gathered all the info about my device, the python file doesn’t work (obviously - it’s purpose is to decipher the IR codes. The SP3 socket doesn’t send any IR signals, it just turns the plugged device on or off.
And now I have no idea how to set this up in HA… No idea.
switches:
reciever:
command_on: ‘switch_packet on’
command_off
What to write in the command_on and off? Can anybody help? How have you integrated that in HA?
All of this is not necessary to have the sp3 working in hass. All you have to do is to put the first lines. Mac address, ip address and the type sp3.
Like this example:
switch 1:
platform: broadlink
host: IP_ADDRESS
mac: ‘MAC_ADDRESS’
type: sp3
friendly_name: ‘Humidifier’
Man! That works like a charm! I’ve got no idea why I haven’t seen that in the tutorial earlier. Thanks a lot!
That gets the SP3 switch into Home Assistant front end, but then how do you control it with Google Home Assistant device or Amazon Echo device?
There are at least two options:
Adding emulated_hue to you configuration.yaml. Then you set it up in Google home or Alexa as if it was a Philips Hue bridge. It would “think” that the switch is a Philips bulb so you will be able to say a command like “switch the kettle on” if you’re switch is connected to a kettle, for example.
If emulated_hue doesn’t work for you (I have no Google Home, just Home Assistant, and maybe that’s the reason the option 1 doesn’t work for me), you can use IFTTT. In IF you should set up Google assistant command, and in THEN you would create a HTML call to your server. Like https://your_host/api/services/switch.kettle/turn_on.
Hope this helps. Let me know how it works
Hi! I have the working solution! I bought one today.
Put this in your configure.yaml
switch:
- platform: broadlink
host: SP3_IP_address
mac: 'SP3_MAC_address'
type: sp3
friendly_name: "name of lamp"
And now, you have to create an IFTTT recipe.
IF THIS: Google Assistant -> Simple Phrase -> Your command in 3 variant
THAN THAT: Webhook
URL: http://YOUR_IP_OR_DUCKDNS:8123/api/services/switch/turn_on?api_password=YOUR_PASSWORD
Method: POST
Content Type: application/json
Body: {“entity_id”:“switch.name_of_lamp”}
/* URL contain the ON command, you have to change turn_on to turn_off for OFF command. */
/* Body switch name is your configure.yaml SP3 friendly name without spaces, because you have to use underline istead of space */
I hope this is a good help for you! My english is terrible, I know.