Jump to content
🌟 NOTIFICATION/Benachrichtigung: Welcome to our New Store! - shelly.com 🌟 ×

BLU to MQTT


Refhi

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...

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 };

 

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...

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 by meematt372365
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...