eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
224 stars 61 forks source link

RM4C mini Bestcon Unknown #91

Closed mike01483 closed 3 years ago

mike01483 commented 3 years ago

Used Broadlink app to connect Bestcon RM4C mini to wifi. Already use multiple devices so have set device_type = 'multiple_lookup' in custom.conf Running python3 ./mqtt.py in terminal I see

[2021-01-24 16:53:45,752] DEBUG Connected to 'Unknown' Broadlink device at '192.168.3.132' (MAC a0:43:b0:31:d3:63) and started listening to MQTT commands at 'broadlink/Unknown_31_d3_63/#' As well as other broadlink devices.

Sending commands via mosquitto_pub replay -> broadlink/Unknown_31_d3_63/soundbar/power in terminal I get

[2021-01-24 16:55:46,276] DEBUG Received MQTT message broadlink/Unknown_31_d3_63/soundbar/power replay [2021-01-24 16:55:46,277] WARNING Unrecognized MQTT message replay The above command works fine if sent to other broadlink devices.

Have deleted RM4C from broadlink app and re-added wifi again without continuing full configuration. Have installed the latest broadlink-mqtt revision. But can't get this device working.

thiagogsr commented 3 years ago

It has been added to python-broadlink, but it hasn't been released: https://github.com/mjg59/python-broadlink/commit/bc6719dc2a125ef6979d017f98fe640a9d959b72. I've fixed it installing the package from Github with the command:

pip3 install --upgrade git+https://github.com/mjg59/python-broadlink.git@master#egg=broadlink
mike01483 commented 3 years ago

Thanks - added

0x6539: (rm4, "RM4C mini", "Broadlink"),
to
/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py

and RM4C mini is working great.