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. 4 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 July 26 Share Posted July 26 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...
SerITA88 Posted August 1 Share Posted August 1 I'm trying to adapt your script to the shelly blue motion, but I have no idea what to insert instead of "shelly_blu_name_prefix" could you help me? Quote Link to comment Share on other sites More sharing options...
meematt372365 Posted August 20 Share Posted August 20 (edited) Hi, Sorry maybe for my silly question but could you please precise me what kind of informations need to be changed in the CONFIG ? Do I need to change only the Mac Address or more ? Is it possible to have an example to understand better ? Here I don't understand what I need to indicate : "another_address": "another_topic" "yet_another_address": "yet_another_topic" Edited August 20 by meematt372365 Quote Link to comment Share on other sites More sharing options...
meematt372365 Posted August 20 Share Posted August 20 Sorry for the question... I believe I understood. Another address and yet another address are for other devices ! Quote Link to comment Share on other sites More sharing options...
meematt372365 Posted August 21 Share Posted August 21 Hi One question please. When the script is implemented (on Shelly BLU Gateway in my case), the Bluetooth devices events are directly transfered to the Broker ? I've my broker on Jeedom and nothing appears 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.