Hi I found a solution using http://192.168.68.146/emeter/0 & Relay/0
looks like the status is too big to trasnfer
Beiträge von EMRocha
VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
-
Hi I need one help
I am running my Script in a Shelly Plus 1PM to control and monitor one Shelly 3EM, the project is a CEE 16A plug that I have in my garden so I only want to have power in it if I am charging my car if not will be Off.
I have already created a BLE Scan script that turns ON the relay in the Shelly EM3 once car approach.
Now I would like to implement a script where after detecting Relay ON and No Power consumption after 5 min it will turn OFF relay.
I have tried may ways but no success,
looks like in order to get my Shelly EM3 status I need to get it via http, fine but parsing it is a problem looks like the json is truncatedDEBUG I have added in my Code
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. URL with Status
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. Any Idea why its getting truncated ? Any recomended solution ?
I have version 1.11.7
-
Thank you
I have used it as base of my code and now I can see the BLE MAC address !!Have a great day and thank you for your support amazing
-
I Have tried the following but the it is not scanning I have 1.7.2 in one shely plus and 1.6.2 in another and both are not scanning.
Code
Alles anzeigen/* * Shelly Plus BLE Scan Script * * Scans for BLE devices and logs their MAC addresses and signal strength (RSSI). * Runs continuously every 15 seconds. */ // Scan interval in milliseconds let SCAN_INTERVAL_MS = 15000; // Function to start BLE scan function bleScan() { console.log("Starting BLE scan..."); BLE.Scanner.Start({ duration_ms: 8000 }, function(event, result) { if (event === "SCAN_RESULT") { let addr = result.addr.toUpperCase(); let rssi = result.rssi; let name = result.name || "Unknown"; console.log("Found BLE device - MAC: " + addr + ", RSSI: " + rssi + ", Name: " + name); } if (event === "SCAN_FINISH") { console.log("BLE scan finished.\n"); } }); } // Set a repeating timer to scan periodically Timer.set(SCAN_INTERVAL_MS, true, bleScan); // Run the scan once immediately bleScan(); console.log("BLE scanning script started.");
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. Do you have any idea why scanning is not working ? I want to use it as it can detect my keychain so then I can play with what I want to activate post detection. But i can not scan and do not know why.
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. -
I would like to write a script that would detect a BT mac address from a Beacon device or BT device and this would activate my Shelly Plus 1PM.
Could some one share the script?
-
Harry Plotter do you mind sharing your script?
I am trying the same but no success at the moment.