Jump to content

Recommended Posts

Posted

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...

 

 

Posted

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!

 

Posted

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.

Posted
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 ? 

Posted
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 

Posted

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 

Posted

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

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

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.

×
×
  • Create New...