Page 1 of 1

Shelly ble window sensor and shelly plus to MQTT autodiscovery

Posted: Wednesday 19 February 2025 13:54
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 473 times
modif 1-2.png
modif 1-2.png (19.2 KiB) Viewed 473 times
so if you copy paste the script in attchement, save and start it the device should appear in the domoticz devices list

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

Posted: Wednesday 19 February 2025 13:58
by TiXav
ShellyBLEinDz.png
ShellyBLEinDz.png (45.78 KiB) Viewed 471 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 469 times
MQTT temp.png
MQTT temp.png (23.15 KiB) Viewed 468 times
I hope it could help someone