I understand by what i don't get. Why is it giving the error suddenly. Before last night it was working fine and AP of other software was not updated.EscApe wrote: ↑Sunday 09 February 2020 11:20Thanks!Result /usr/sbin/wlanconfig eth0 list; echo $?
CODE: SELECT ALL
Schuur-BZ.v4.0.80# /usr/sbin/wlanconfig eth0 list; echo $?
Not supported
0
So we found the culprit. Running wlanconfig on eth0 returns an error message, but not an errorlevel (still returning 0). So the plugin assumes it is a usable interface, when in fact it isn’t. The presence detection will still work without any issues. You can ignore the error message.
I don’t know if this is specific to the unifi or a generic issue for all routers using the wlanconfig command. Since I don’t know every make and model router that uses the atheros chipset I can not simply exclude eth0 from the detection script. A specific tracker for the unifi is an option but I would still prefer auto detection over this approach. Even when it throws an ignorable error.
The auto detection could be enhanced to not only check the errorlevel but also the string returned. I will look into that,but since functionality is not affected in any way it is not a top priority.
I use Berryboot so i can boot different images if Domoticz crash. I have now an older Domoticz running from last week with running V1 of iDetect and with same AP's it is running without error.
Code: Select all
2020-02-09 11:30:21.099 Status: (iDetect) Using chipset specific wlanconfig command on router 192.168.0.203 for interfaces ath0 & ath1 & ath2 & ath3 & eth0 (=wlanconfig ath0 ath1 ath2 ath3 eth0)
2020-02-09 11:30:21.255 Status: Python EventSystem: Initalizing event module.
2020-02-09 11:30:21.256 Status: EventSystem: Started
2020-02-09 11:30:21.256 Status: EventSystem: Queue thread started...
2020-02-09 11:32:31.274 Status: (iDetect) Using chipset specific wlanconfig command on router 192.168.0.201 for interfaces ath0 & ath1 & ath2 & ath3 & eth0 (=wlanconfig ath0 ath1 ath2 ath3 eth0)
2020-02-09 11:32:31.849 Status: (iDetect) Using chipset specific wlanconfig command on router 192.168.0.202 for interfaces ath0 & ath1 & ath2 & ath3 & eth0 (=wlanconfig ath0 ath1 ath2 ath3 eth0)
I will try to make a clone in Berryboot from the older Domoticz and runs that one and upgrading iDetect from V1 to V2 to see if the error is coming back directly.
The problem is the de log of Domoticz is getting full with errors so you can't see any real error anymore generated with Domoticz.