Shelly Bluetooth and MQTT and bthome

Hi

I love my Shelly wifi switches. and just bought some Shelly Blu motion and door/window sensors.

@mschaeffler/node-red-bthome only works with Node Red version 4 but my Victron cerbo gx software (v3.55) only comes with NR v3.1.10

I see loads of scripts out there, to get Shelly Blu to send messages to Node Red via MQTT, but I can’t get any of them to work.

Has anyone got a Shelly Blu motion to talk to Node Red on a cerbo gx ??

Cheers

Hi,

I have it working on an EasySolar-ii GX for a Shelly Blu Remote 4 button and a Blu Motion, using Shelly’s Universal BLU to MQTT Script running on a Shelly 1 Gen 4. I changed the script to translate the MAC address to a friendly name and to move the payload items I am interested in so they are top level items in the JSON posted to MQTT. Things like motion, illumination, button number and press type. You could just leave them where they are, I am just fussy.

Then I use those MQTT topics as triggers for NodeRed flows, some of which use MQTT to switch other shelly devices.

I am running my EasySolar in Secure mode. It is also the MQTT broker and the NodeRed host. It is connected via an ethernet cable to my access point. All my Shelly’s are set up on that WiFi access point, with MQTT enabled. Important note, when you enable MQTT it will reboot and then let you know if it is connected to the MQTT broker.

I also used MQTT Explorer to see what was happening.

My topics end up being things like:
Buttons_main_door/events/button:0
Then for controlling the Shellys things like:
Heatpad/command/switch:0

Hope that helps.