When I upgrade FOR EXAMPLE TO mega-20190630 the SONOFFs using either OTA or FLASH(usb) I can see the modules starting as I have a rule
Code: Select all
on System#Boot do
Event lamp_on
delay 1000ms
Event lamp_off
delay 1000ms
Event lamp_on
delay 1000ms
Event lamp_off
endon
Also the DHCP server on my network has the correct entry:
Code: Select all
Mar 1 12:12:14 yorkstreet dhcpd: DHCPDISCOVER from 5c:cf:7f:7c:71:d4 via eth_0
Mar 1 12:12:14 yorkstreet dhcpd: DHCPOFFER on 192.168.200.156 to 5c:cf:7f:7c:71:d4 via eth_0
Mar 1 12:12:14 yorkstreet dhcpd: DHCPREQUEST for 192.168.200.156 (192.168.200.1) from 5c:cf:7f:7c:71:d4 via eth_0
Mar 1 12:12:14 yorkstreet dhcpd: DHCPACK on 192.168.200.156 to 5c:cf:7f:7c:71:d4 via eth_0
Code: Select all
64 bytes from 192.168.200.156: icmp_seq=57 ttl=255 time=1216 ms
64 bytes from 192.168.200.156: icmp_seq=66 ttl=255 time=3433 ms
64 bytes from 192.168.200.156: icmp_seq=71 ttl=255 time=194 ms
64 bytes from 192.168.200.156: icmp_seq=78 ttl=255 time=434 ms
64 bytes from 192.168.200.156: icmp_seq=85 ttl=255 time=213 ms
64 bytes from 192.168.200.156: icmp_seq=87 ttl=255 time=7.61 ms
64 bytes from 192.168.200.156: icmp_seq=96 ttl=255 time=79.4 ms
64 bytes from 192.168.200.156: icmp_seq=104 ttl=255 time=1412 ms
64 bytes from 192.168.200.156: icmp_seq=121 ttl=255 time=3.34 ms
Code: Select all
on black_button#Switch do
if [black_button#Switch]=0
gpio,12,0
gpio,13,1
else
gpio,12,1
gpio,13,0
endif
endon
I turn the lamp on using the button then issue this
Code: Select all
wget -q http://192.168.200.156/control?cmd=event,lamp_off
Loading the webpage is pointless.
It really seems there is a problem with the WIFI ALTHOUGH the SONOFF module I am testing is lying on my table and the WIFI router is about 2 meters away. Looking at the logs of the WIFI Router (Nighthawk R7000) there is a constant connection/disconnection going on ... not stable at all.
Longest is about
I am not sure what to do.
There seems to be nothing on the forum matching my problem (well that off course depends whether I am searching correctly).
Any ideas?