Ich versuche gerade die Events, die von BLE-Devices kommen, in einem Script an einen MQTT-Server zu schicken um die Ereignisdaten in Node-RED weiterverwenden zu können.
Im Moment scheitere ich noch an einfachen Dingen. Ich experimentiere im Moment vorerst nur mit einem ShellyBLU Button 1.
Von shelly-script-examples/ble-shelly-scanner.js at main · ALLTERCO/shelly-script-examples · GitHub habe ich einen BLE-Scanner herunter geladen, mit dem ich meine BLE-Devices identifizieren kann. Leider funktioniert schon dieser nicht.
Ich bin draufgekommen, dass das Script vom BLE.Scanner im Ergebnisobjekt einen Wert "local_name" erwartet. Dieser ist aber in dem Objekt nicht enthalten.
Im März habe ich den Shelly Scripting Course Advanced besucht, da hat das gleiche Script mit einem BLU Button 1 hervorragend funktioniert. - Hat sich an der Firmware der BLE-Devices zwischenzeitlich etwas geändert???
Vielleicht kennt jemand das Problem. Ich bin im Moment etwas verwirrt...