Jump to content
🌟 NEW Shelly Products Reveal Video! 🌟 NEUE Shelly-Produkte-Enthüllungsvideo! 🌟 ×
NOTICE / HINWEIS: iOS 18 Update and Today Widgets ×

Sensor actions


verdura

Recommended Posts

Hi all,

I have a flood sensor and  need to call a url when a flood is detected and when a temperature is over 27 ºC. The url is a way to send a SMS but even so the temperature is over 27 ºC it never call the url. If I call it in a browser it works fine but the sensor never calls it...

image.png.7a53b8f40f57d52af07cd10c235c8ae6.png

I need to put it too in the flood detected action...

 

 

Link to comment
Share on other sites

Done as instructed...

image.thumb.png.c77fdf09ea89aa25f24b91b652802a83.png

But the result is the same... No sms. As allways if called in a browser it works...

Is there any log to see if there's any error?

Also, with the above configs, does it call the url once it reaches the target temperature or for instance if it starts and the temp is already above 27ºC it calls the url?

Thanks a lot for the help!

 

Link to comment
Share on other sites

Pls. access http://<shelly-ip>/status and also http://<shelly-ip>/settings

Just to be on the safe side: Please check that the temperature displayed here is really above 27 degrees Celsius.

10 minutes ago, verdura said:

Also, with the above configs, does it call the url once it reaches the target temperature or for instance if it starts and the temp is already above 27ºC it calls the url?

I assume that even if the temperature is already above 27 degrees Celsius when the Flood wakes up, the URL is called.

Link to comment
Share on other sites

Another point, @Heinz wrote this in another post:

Quote

There is a setting for the temperature threshold at which the device wakes up and sends the information if there has been a temperature change.

Presumably this also calls up the URL / triggers the sensor action.

Edited by tvbshelly
Link to comment
Share on other sites

57 minutes ago, verdura said:

Done as instructed...

image.thumb.png.c77fdf09ea89aa25f24b91b652802a83.png

But the result is the same... No sms. As allways if called in a browser it works...

Is there any log to see if there's any error?

Also, with the above configs, does it call the url once it reaches the target temperature or for instance if it starts and the temp is already above 27ºC it calls the url?

Thanks a lot for the help!

 

You should be able to see all logs of the device in the debugger 


So just that i understand when you set the alarm with shelly there are the Phone notifications ( this is notification from the App not sms) Email ( email of registed account) Alexa ( when added ) and ativity log 

I would check the log on the shelly to see if its sending anything and then the logs of the server to see if you getting anything. 
If you want to go more advanced I would do a network sniffing with Wireshark to see what packets are being sent to and from the device and server IP

do you have a SMS server these calls are being sent to ? 

Link to comment
Share on other sites

23 minutes ago, tvbshelly said:

I found it, that's how it works: http://<shelly-ip>/settings/?debug_enable=true

And then access the log with http://<shelly-ip>/debug/logs

yup i did a test now and on the flood you can get the logs  from the device 
Download Previous and download current logs 

to get the status its 
<ipaddress>/status

its good to get the current status of the device as well as the device logs 

Link to comment
Share on other sites

Hi,

Beforehand let me thank you for all the help given...

I managed to get all the things you instructed me. I send then in attach.

I didn't see nothing out of the ordinary. I change the temperature for a lower setting. Status:

image.thumb.png.db8c59bda3bc55706030dd417ae2954d.png

 

image.thumb.png.cc9071da66d65b37a31df09296eb1779.png

logs.txt settings.txt status.txt

Link to comment
Share on other sites

in the logs i cant see the device sending anything to the sms.php server. The other settings looks fine going to try test this to see what its doing and what its not. maybe i can find the root cause 

Im doing a simular test but instead of a php server im doing a standard webhook to turn on a shelly device when its goes below the temp of 10. It should turn on a light 

Link to comment
Share on other sites

So i did the test with the webhook its abit with both over temp and under temp for a webhook on a shelly plus 1pm. 

could you try this test to make sure the device is sending a webhook. easy way i did this to speed things up was have a under temp and over temp. The webhook i used for the Plus 1pm 
http://<IP address>/rpc/switch.toggle?id=0

Link to comment
Share on other sites

Posted (edited)

Well... I change the php code and it worked in the LAN not in the internet. The same code but different url, it doesn't... Maybe the https? The DNS?

I force ip, gw and dns...

----

Just for the record the code change was using a redirect with the Header function - Not working

changed to curl - Worked

---

Edited by verdura
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...