eschava / broadlink-mqtt

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

Alternative TOPIC structure for macros #88

Closed digitlength closed 3 years ago

digitlength commented 3 years ago

Is it possible, as with the commands, to have an alternative method of activating macros?

For example, it would be super useful (for me, of course!), if we could send the message "my_macro_name" to topic broadlink/<device-id>/macros

This means only a single topic needs to be configured to activate macros, and the message contains the name of the macro.

eschava commented 3 years ago

Done, please check I used broadlink/<device-id>/macro topic for this

digitlength commented 3 years ago

Perfect! Works like a charm!