Allows BLU shellies to be used with MQTT.
The script is designed to work with the following Shelly BLU devices:
- SBBT - Shelly BLU Button
- SBDW - Shelly BLU DoorWindow
It decodes the service data from these devices and publishes it on an MQTT broker. The script is configurable to match your specific needs.
You can configure the script by modifying the CONFIG object. You need to specify the addresses of the Shelly BLU devices you want to monitor and the corresponding MQTT topics.
let CONFIG = {
shelly_blu_address: {
"38:39:8f:99:75:fb": "shellies/comble_velux1",
"another_address": "another_topic",
"yet_another_address": "yet_another_topic"
},
};
On your shelly PLUS, activate the Bluetooth Gateway capability and setup MQTT. Then go to Scripts, create a new one, save it, and activate it. If you enabled the Websocket debug in the settings, you can see the output of the script in the debug console.
Part of this code is from this post on the Node-RED forum.
This project is under the WTFPL license. You can do whatever you want with it.