eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
221 stars 60 forks source link

RMMIN type_device nslookup #93

Closed wakan closed 3 years ago

wakan commented 3 years ago

DEBUG Connected to 'RMMINI' Broadlink device at

WARNING Unrecognized MQTT message record

Thx for project

eschava commented 3 years ago

RMMINI is not supported yet. Do you still need it?

wakan commented 3 years ago

If you want, it's cool. Possible solve :

diff --git a/mqtt.py b/mqtt.py
index b9b281e..b11420d 100755
--- a/mqtt.py
+++ b/mqtt.py
@@ -182,7 +182,7 @@ def on_message(client, device, msg):
             return

         # RM2/RM4 record/replay control
-        if device.type == 'RM2' or device.type == 'RM4':
+        if device.type == 'RM2' or device.type == 'RM4' or device.type == 'RMMINI':
             file = dirname + "commands/" + command
             handy_file = file + '/' + action

Thanks a lot.

eschava commented 3 years ago

Done

wakan commented 3 years ago

Thanks a lot