Event door/window Modul BLE

  • I have a question about the new door/window module.

    How can I uses a script to determine the event window will open / closed?

    The event handler of the Plug S plus only recognizes the relay and the current data, but not the states of the connected door/window module.

    Best regards

    Günther

  • Hallo Rudi96,

    If you send me some Blu Door/Window raw data, I would try to decrypt it and add the Blu Door/Window to my BLE event script.

    Unfortunately I don't have a BLE/Blu Door/Window. So without the raw data I can't add anything to my script.

    _[Deleted]_
    10. Mai 2023 um 20:46
  • Thx, that helped a bit, but I need some raw BT data to test if it works or not.

    1. Go to a free script slot and insert my script, click on save, wait 20sek, then click on start.

    2. Click on the "FULL Log" checkbox above the script console to enable full debug log output and then.

    3. Please post the blue console output generated by your Blu DW actions, which should be below the script.

    You could use my script or any other scanner script, just trigger some blu door/window action while the scanner script is running and the script window is open.


    My Script, with debug set true:


    The Raw Data should look like this:

    Code
    shelly_bluetooth_rel:92 ADV b4:35:22:fe:68:97: mfd={}, svc={"fcd2":"RABgAWI6AQ=="}
    10:52:57
    Received packet, raw Data: {"service_data":{"fcd2":"D\u0000`\u0001b:\u0001"},"flags":6,"addr":"b4:35:22:fe:68:97","addr_type":1,"rssi":-75,"advData":"\u0002\u0001\u0006\n\u0016\xd2\xfcD\u0000`\u0001b:\u0001","scanRsp":""}
    10:52:57
    Received BTHome packet: {"gateway":"shellyplus1-abce12345678","rssi":-75,"addr":"b4:35:22:fe:68:97","device":"Hidden-Device","buttonID":1,"batteryString":"98%","battery":98,"pid":96,"version":2,"encryption":false}
    10:52:57
    shelly_notification:206 Event from script:9: {"component":"script:9", "id":9, "event":"single_push", "data":{"encryption":false,"pid":96,"rssi":-75,"mac":"b4:35:22:fe:68:97","inputID":1,"battery_string":"98%","battery_value":98,"device":"Hidden-Device","gateway":"shellyplus1-abce12345678","generation":"BLU"}, "ts":1689670377.46}
    10:52:57
  • Code
    {"rssi":-84,"addr":"bc:02:6e:a1:a2:a3","Rotation":0,"Window":0,"Illuminance":5,"Battery":100,"pid":140,"BTHome_version":2,"encryption":false} 

    the raw data of an other skript

    Above, it was out of MQTT-Explorer

  • Dieses Thema enthält 4 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.