mjg59 / python-broadlink

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

BroadLink BestCon MSK1 integration #562

Open redotheone opened 3 years ago

redotheone commented 3 years ago

Do you think it is possible to add MSK1 to python-broadlink?

Also, how do we know what is the hex id for a given device?

1935390288f545eb88e235d8e84a84f7c545147d

KTibow commented 3 years ago

Do you think it is possible to add MSK1 to python-broadlink?

Probably. Have you heard of that before @felipediel?

Also, how do we know what is the hex id for a given device?

If you're asking for how to find it, once connected to your network, try this:

import broadlink
devices = broadlink.discover() # This will take 10 seconds
print(devices)

The 0xblabla is the hex id for each device.

felipediel commented 3 years ago

Probably the same as S1C, but with special payload headers.

CyberMod-Studio commented 2 years ago

Can MSK1 works with Home Assistant?

kevinelliott commented 2 years ago
>>> broadlink.hello('192.168.14.200')
broadlink.device.Device(('192.168.14.200', 80), mac=b'$\xdf\xa7\xacU\x90', devtype=11001, timeout=10, name='IHG', model='', manufacturer='', is_locked=False)
>>> device.auth()
True
>>> device.get_fwversion()
51321
>>> device.get_type()
'Unknown'
>>> print(device)
IHG (0x2af9 / 192.168.14.200:80 / 24:DF:A7:AC:55:90)
kevinelliott commented 2 years ago

So there's the hex id for the Broadlink MGW1 gateway hub (which is part of the MSK1 sensor kit). 0x2af9

kevinelliott commented 2 years ago

@KTibow @felipediel @redotheone

felipediel commented 2 months ago

Thanis @kevinelliott! Does it work with the SC1 class? If so, we can add the new product id.