Page 1 of 1

Easy Esp based WiFi monitor

Posted: 11 Sep 2019, 16:28
by ljoncz
Hi,

I have few WiFi networks in my hose.
I'd like to build a WiFi monitor that checks if the networks are up and sends the relevant status to Domoticz

I'm thinking about something like this, but I have no clue how to handle output from WifiScan command. Any ideas?

Code: Select all

on WiFi#Connected do
   timerSet,1,60
endon

on Rules#Timer=1 do
   <pseudo code starts here>
   list_of_wifis = WifiScan
   if 'My Wifi1' in list_of_wifis 
      send status 1 to Domoticz 
   else 
      send status 0 to Domoticz
   end
   (repeat for each wifi)
   <pseudo code ends here>
   timerSet,1,60
endon
Cheers
Lech

Re: Easy Esp based WiFi monitor

Posted: 11 Sep 2019, 19:58
by grovkillen
Sorry, you cannot reach the scan results. You could open a feature request on GitHub. Explain the intended use case.