mjg59 / python-broadlink

Python module for controlling Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs
MIT License
1.39k stars 480 forks source link

Add support for SCB1E with type 0xA56B #616

Closed larsvanmourik closed 3 years ago

larsvanmourik commented 3 years ago

Used as integration in HA.

Installed python broadlink version is 0.17.0

It seems to work when I add it to the init.py and use it as a sp4, even with power readings (although values differ from the Broadlink app, need more testing to see if its even accurate).

I would have expected it to work better as sp4b, as I see other entries that also have the name "scb1e", but then I get the error message that the device storage is full. Which is weird, the Broadlink app has no problems.

So maybe there's a slight variation in this hardware type ? I also saw some forum posts mentioning sp4s in this library but I can't seem to find it (anymore?). Was it merged with sp4(b) ?

Thanks, I am more than happy to do some testing if necessary.

larsvanmourik commented 3 years ago

In case more information is needed, here's a link to a (admittedly bad) picture of the box it came in: https://van-mourik.org/scb1e.jpg

larsvanmourik commented 3 years ago

Update: power reading is accurate so just adding the hex type to the init should do it.

felipediel commented 3 years ago

Thank you! :rocket: