Refhi Posted April 10 Share Posted April 10 Hi everyone, I wanted to use the BLU devices with my MQTT setup. I made this to answer the question : https://github.com/Refhi/Shelly-BLU-to-MQTT It's a script you put on a BLU Gateway capable device where MQTT is enabled (Shelly BLU Gateway, or any Shelly Plus, Pro or Gen3 device (excluding sensors) to transfer your BLU devices events to the MQTT broker. For now it should work with Shelly BLU Button and Shelly BLU DoorWindow. You must have the mac address for it to work. I hope it will help a few. 3 Quote Link to comment Share on other sites More sharing options...
Naama Posted May 17 Share Posted May 17 Thanks! This works 😄 Here's a suggestion, don't use capital letters on the object names. object.Window is an property but object.window is not. So I just changed these: BTH[0x00] = { n: "pid", t: uint8 }; BTH[0x01] = { n: "battery", t: uint8, u: "%" }; BTH[0x05] = { n: "illuminance", t: uint24, f: 0.01 }; BTH[0x1a] = { n: "door", t: uint8 }; BTH[0x20] = { n: "moisture", t: uint8 }; BTH[0x2d] = { n: "window", t: uint8 }; BTH[0x3a] = { n: "button", t: uint8 }; BTH[0x3f] = { n: "rotation", t: int16, f: 0.1 }; Quote Link to comment Share on other sites More sharing options...
mice777 Posted July 11 Share Posted July 11 Perfect, that's what I was looking for. It's working. Quote Link to comment Share on other sites More sharing options...
gerand Posted July 12 Share Posted July 12 Thank you very much! At first I got no data via mqtt from Shelly. Also no debug information. Then I only used capital letters in MAC adress and it works. 🤷🏻♂️ Quote Link to comment Share on other sites More sharing options...
JBlack Posted 15 hours ago Share Posted 15 hours ago How would you modify this script in order to connect to bluMotion devices? Thank You! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.