Wifi trigger, inconsistent status?
Posted: 07 Nov 2018 08:12
My goal was to create flow which execute different actions based on connecting/disconnecting my home network.
Flow begins from combined trigger (AM startup, WiFi Connected, WiFi Disconnected). The second is a condition (WiFi Connected) used for subsequent storing actual connection status to variable. But when I come home, it is working unexpectedly (irrelevant data is omitted):Well, we see that device was connected to net24. But here's next log records:
After condition was running almost for a second(!) it shows that network is not connected. Why? Highly unexpected. Maybe because the network was quickly disconnected? Unlikely, because FEP was set to «stop current, start newer», and there are no log entries for the «newer» flow. So there was no disconnected event, right?
In other words, immediately after a «connected» event the connection status is «disconnected». Very strange.
Flow begins from combined trigger (AM startup, WiFi Connected, WiFi Disconnected). The second is a condition (WiFi Connected) used for subsequent storing actual connection status to variable. But when I come home, it is working unexpectedly (irrelevant data is omitted):
Code: Select all
10:41:01.368 Starting to execute flow with Context{local{trigger=WiFi Connected: net24,net5,ssid=net24,bssid=xxxx}}
Code: Select all
10:41:01.368 Start executing condition 'WiFi Connected: net24,net5'
10:41:02.379 End executing condition 'WiFi Connected: net24,net5' with return value false
In other words, immediately after a «connected» event the connection status is «disconnected». Very strange.