Beiträge von Kolo Kolo
-
-
-
I have successfully paired and then flashed my two Shelly BLU devvices. After flashing, I wanted to turn ON the beacon function and to turn OFF beeper. When I try that, the app says that it is not a Shelly device. The app shows increasing value for pocket_id, battery and events like clicking but I can't pair it again. Any advices?
-
This script is my version of the official script from here: ALLTERCO.
It doesn't really do a real PING. It tries to simply GET a resource from the provided endpoints. If your router has, for example WEB login page then it is probably possible to add/replace provided endpoints with your own addresses. It must make a response with 200 code.
I have checked and it looks like it may work. My router's login page address inside my LAN is: http://192.168.13.254
-
Maybe you can try my script from this post: Shelly watchdog - restart
-
Hi,
at first I wanted to say, I'm not a coder by any means (this is double of this post Shelly watchdog - restart), but maybe here is more suitable place for it.
So my goal is to have a script which checks if a Shelly is able to reach the Internet and if not, Shelly should be restarted. Sometimes a few Shellies lose their connection and the only way to reconnect is to restart a Shelly itself.
I have tried to modify existing script and my outcome looks like:
Code
Alles anzeigen// This script tries to execute HTTP GET requests within a set time, against a set of endpoints // After certain number of failures the script resets the shelly let CONFIG = { endpoints: [ "https://global.gcping.com/ping", "https://us-central1-5tkroniexa-uc.a.run.app/ping", ], //number of failures that trigger the reset numberOfFails: 5, //time in seconds after which the http request is considered failed httpTimeout: 10, //time in seconds to retry a "ping" pingTime: 60, }; let endpointIdx = 0; let failCounter = 0; let pingTimer = null; function pingEndpoints() { Shelly.call( "http.get", { url: CONFIG.endpoints[endpointIdx], timeout: CONFIG.httpTimeout }, function (response, error_code, error_message) { //http timeout, magic number, not yet documented if (error_code === -114) { print("Failed to fetch ", CONFIG.endpoints[endpointIdx]); failCounter++; print("Rotating through endpoints"); endpointIdx++; endpointIdx = endpointIdx % CONFIG.endpoints.length; } else { failCounter = 0; } if (failCounter >= CONFIG.numberOfFails) { print("Too many fails, resetting..."); failCounter = 0; Timer.clear(pingTimer); Shelly.call("Shelly.Reboot"); } } ); } print("Start watchdog timer"); pingTimer = Timer.set(CONFIG.pingTime * 1000, true, pingEndpoints);
I have checked and it looks like the script works. Maybe someone could check/advise if it is ok. Maybe some improvement could be made.
Thanks in advance.
-
Hi,
at first I wanted to say, I'm not a coder by any means
So my goal is to have a script which checks if a Shelly is able to reach the Internet and if not, Shelly should be restarted.
I have tried to modify existing script and my outcome looks like:
Code
Alles anzeigen// This script tries to execute HTTP GET requests within a set time, against a set of endpoints // After certain number of failures the script resets the shelly let CONFIG = { endpoints: [ "https://global.gcping.com/ping", "https://us-central1-5tkroniexa-uc.a.run.app/ping", ], //number of failures that trigger the reset numberOfFails: 5, //time in seconds after which the http request is considered failed httpTimeout: 10, //time in seconds to retry a "ping" pingTime: 60, }; let endpointIdx = 0; let failCounter = 0; let pingTimer = null; function pingEndpoints() { Shelly.call( "http.get", { url: CONFIG.endpoints[endpointIdx], timeout: CONFIG.httpTimeout }, function (response, error_code, error_message) { //http timeout, magic number, not yet documented if (error_code === -114) { print("Failed to fetch ", CONFIG.endpoints[endpointIdx]); failCounter++; print("Rotating through endpoints"); endpointIdx++; endpointIdx = endpointIdx % CONFIG.endpoints.length; } else { failCounter = 0; } if (failCounter >= CONFIG.numberOfFails) { print("Too many fails, resetting..."); failCounter = 0; Timer.clear(pingTimer); Shelly.call("Shelly.Reboot"); } } ); } print("Start watchdog timer"); pingTimer = Timer.set(CONFIG.pingTime * 1000, true, pingEndpoints);
I have checked and it looks like the script works. Maybe someone could check/advise if it is ok. Maybe some improvement could be made.
Thanks in advance.
-
-
Thank you guys for the clarification
-
Hi,
what is the difference or maybe there is not, between Play/Pause button on the left and Toggle switch on the right.
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen. -
Beta releases for GEN2 devices have changelog, so the same approach for GEN1 would be nice.
-
WOW, great. I have swapped L and N which powers the Shelly and now it works as expected. BIG THANKS
-
Thank you,.
I have also done some tests and SW is preloaded with ~127V (I think because it is possible to use N to swich ON).
Because of that, after switching OFF, connected bulb is still halfway ON.
-
Hi,
so normally connection diagrams show that we connect L to L, N to N and L to I. Then when we have L on SW relay is closed and there is voltage from mentioned I(input) to O(output).
I would like to have voltage on I at the same time when it appears on SW, so I has voltage only when SW(switch) is on and then and only then from mentioned I(input) to O(output). I know it wouldn't be possible to use for example command from Home assistant but are there any drawbacks of this solution?
-
Ok, so I have asked about a relay in question but also about similar relay from a different company - model PP-1P-230V LINK.
They confirmed PP-1P-230V output side can be on different phase than control side. I suspect it is also the case with PEP-01/230 but lets wait for their help desk's answer.
So assuming it is ok to do this like I would like to, is there any difference if I have used Shelly 1PM
instead of Shelly 1?
-
Yes I can see your point.
It is probably designed to be used with the same phase for source/input for AC current.
Manual says source/control side can be DC and output AC. I think I can try ask the manufacturer of this relay if my scenario is acceptable.
-
Is specified for max 250V AC or 30 V DC. I assume unless there is no internal damage/fault in PEP1 it can work/isolate those two different phases of 230V because it is not possible to mix source and output sides of PEP. Am I right?
-
I have done some changes to my "design". Please find the attached drawing.
The idea is that phase L1/N1 and L2/N2 are on different RCD's and they are different phases from mains.
So maybe I could use an additional relay which can do galvanic isolation of source and output. So I would like to monitor presence of phase L2. When phase L2 is present, then PEP-01/230 relay is on, connection is between 11 and 14 and there is no input on SW of Shelly.
When phase L2 is out, then PEP-01/230 relay is off, connection is between 11 and 12 and there is an input on SW of Shelly(then I can have a notification in Home Assistant.).
Does it make any sense?
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. -
Ok, thank you for the clarification.
-
So, is any Shelly capable of this?