Shelly ble window sensor and shelly plus to MQTT autodiscovery

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
User avatar
TiXav
Posts: 41
Joined: Saturday 28 November 2015 22:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Shelly ble window sensor and shelly plus to MQTT autodiscovery

Post by TiXav »

Hello everybody, I would like to share an original shelly script modified to add window/door contact sensor (and illuminance + rotation) to domoticz via MQTT autodiscovery, the device is this one Shelly BLU Door Window
https://www.shelly.com/fr/products/shel ... ndow-white

copy paste the script in attachement in the shelly device (and activate bluetooh), this is working only for PLUS series

the script is based on this shelly script ble-pasv-mqtt-gw.js dowloaded directy from the shelly script library and I add this 2 modifications
modif Z-2.png
modif Z-2.png (49.18 KiB) Viewed 469 times
modif 1-2.png
modif 1-2.png (19.2 KiB) Viewed 469 times
so if you copy paste the script in attchement, save and start it the device should appear in the domoticz devices list
Attachments
modified script.js
(14.89 KiB) Downloaded 18 times
Last edited by TiXav on Wednesday 19 February 2025 14:12, edited 3 times in total.
User avatar
TiXav
Posts: 41
Joined: Saturday 28 November 2015 22:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Shelly ble window sensor and shelly plus to MQTT autodiscovery

Post by TiXav »

ShellyBLEinDz.png
ShellyBLEinDz.png (45.78 KiB) Viewed 467 times
note this script is working also to add temperature/humidy from LYWSD03MMC also via MQTT autodiscovery (xiaomi sensor flashed with this way
https://pvvx.github.io/ATC_MiThermomete ... asher.html)
mqtt.png
mqtt.png (34.45 KiB) Viewed 465 times
MQTT temp.png
MQTT temp.png (23.15 KiB) Viewed 464 times
I hope it could help someone
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest