
Seems to work fine, no errors so far in the (now very exhaustive) log.
Moderator: leecollings
Looking good. No more errors in the log. Keep up the good work!EscApe wrote: ↑Sunday 09 September 2018 16:36 Now new features or fixes, but i have tweaked the logging a bit
**version 0.6.6**
- Improved: Debug logging for the ssh session now hides the ssh password.
- Improved: Presence changes are now logged (without needing debug mode), so you can see something is going on.
- Improved: Some more log tweaking (removed some redundancies and changed log levels for some messages)
2018-09-12 08:26:40.238 Error: iDetect iPhones hardware (5) thread seems to have ended unexpectedly
2018-09-12 08:26:40.238 Error: iDetect RPi Fnatenrahmen hardware (6) thread seems to have ended unexpectedly
Code: Select all
Error: (iDetect) Failed 30 times to get capabilities for 192.168.31.1. Retry interval automatically reduced for this router.
Code: Select all
(iDetect) Started.
(iDetect) Entering work loop.
(iDetect) Initialized version 0.7.0, author 'ESCape'
(iDetect) Using generic brctl command on router 192.168.31.1. Will respond slower and on some routers a little less reliable to absence
(iDetect) Awaiting confirmation on absence of 2 devices
(iDetect) Connection restored for 192.168.31.1
(iDetect) SSH command on 192.168.31.1 took 776 milliseconds.
(iDetect) Found these devices connected:[]
(iDetect) Considered absent: Phone2
(iDetect) Considered absent: Phone1
(iDetect) Polling presense data from 192.168.31.1
(iDetect) Using password instead of ssh public key authentication for 192.168.31.1 (less secure!)
(iDetect) Fetching data from 192.168.31.1 using: sshpass -p **secret** ssh -o StrictHostKeyChecking=no -o ConnectTimeout=2 [email protected] export PATH=/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:$PATH;brctl showmacs br0 | grep '..:..:..:..:..:..' | awk '{print $ 2}';exit
(iDetect) ssh command on 192.168.31.1 returned:b''
(iDetect) SSH command on 192.168.31.1 took 780 milliseconds.
(iDetect) Found these devices connected:[]
(iDetect) Considered absent: Phone2
(iDetect) Considered absent: Phone1
Code: Select all
brctl showmacs br0
Code: Select all
arp -a
Code: Select all
root@XiaoQiang:~# brctl showmacs br0
brctl: invalid argument 'showmacs' to 'brctl'
root@XiaoQiang:~# brcl show
-ash: brcl: not found
Code: Select all
? (192.168.31.11) at mac adress [ether] on br-lan
...
Code: Select all
2018-09-25 16:34:40.726 Status: (iDetect) Started.
2018-09-25 16:34:40.939 Status: (iDetect) Entering work loop.
2018-09-25 16:34:40.940 Status: (iDetect) Initialized version 0.7.0, author 'ESCape'
2018-09-25 16:34:41.018 (iDetect) SSH subprocess for 192.168.0.1 failed with error (255):b''
2018-09-25 16:34:41.018 (iDetect) SSH command on 192.168.0.1 took 30 milliseconds.
2018-09-25 16:34:41.018 (iDetect) Could not retreive available commands on 192.168.0.1
2018-09-25 16:34:41.018 (iDetect) Router initialized as:{'192.168.0.1': {'user': '<user account for SSH>', 'errorcount': 1, 'cmd': '', 'prospone': datetime.datetime(2018, 9, 25, 16, 34, 53, 18616), 'initialized': False}}
2018-09-25 16:34:41.018 (iDetect) iDetect - Phone1 is stil in use
2018-09-25 16:34:41.018 (iDetect) iDetect - Phone2 is stil in use
2018-09-25 16:34:41.018 (iDetect) iDetect - Phone3 is stil in use
2018-09-25 16:34:41.019 (iDetect) Devicenames and their Domoticz (subdevice) index: {'Hans': 2, 'Nellie': 3, 'Michel': 4}
2018-09-25 16:34:41.019 (iDetect) MAC addresses to monitor: {'Phone1': {'ignore': False, 'mac': 'D0:B1:28:37:4E:23', 'lastseen': None}, 'Phone2': {'ignore': False, 'mac': '44:C3:46:48:E8:2B', 'lastseen': None}, 'Phone3': {'ignore': False, 'mac': '64:A2:F9:28:5A:A1', 'lastseen': None}}
2018-09-25 16:34:41.019 (iDetect) Plugin initialization done.
2018-09-25 16:34:50.988 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:02.030716
2018-09-25 16:34:50.988 (iDetect) Did not retreive WLAN information from any router
2018-09-25 16:35:00.954 (iDetect) 192.168.0.1 was not properly initialized. Retrying to get router capabilities (and skipping this poll round).
2018-09-25 16:35:00.955 (iDetect) Using password instead of ssh public key authentication for 192.168.0.1 (less secure!)
2018-09-25 16:35:00.955 (iDetect) Fetching data from 192.168.0.1 using: sshpass -p **secret** ssh -o StrictHostKeyChecking=no -o ConnectTimeout=2 [email protected]
2018-09-25 16:35:00.955 #!/bin/sh
2018-09-25 16:35:00.955 export PATH=/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:$PATH
2018-09-25 16:35:00.955 type wl > /dev/null 2>&1 && printf "~wl"
2018-09-25 16:35:00.955 type iwinfo > /dev/null 2>&1 && printf "~iwinfo"
2018-09-25 16:35:00.955 type wlanconfig > /dev/null 2>&1 && printf "~wlanconfig"
2018-09-25 16:35:00.955 type qcsapi_sockrpc > /dev/null 2>&1 && printf "~qcsapi_sockrpc"
2018-09-25 16:35:00.955 type brctl > /dev/null 2>&1 && printf "~brctl"
2018-09-25 16:35:00.955 type arp > /dev/null 2>&1 && printf "~arp"
2018-09-25 16:35:00.955 [ -f /proc/net/arp ] && printf "~procarp"
2018-09-25 16:35:00.955 exit
2018-09-25 16:35:00.955
2018-09-25 16:35:01.045 (iDetect) SSH subprocess for 192.168.0.1 failed with error (255):b''
2018-09-25 16:35:01.045 (iDetect) SSH command on 192.168.0.1 took 90 milliseconds.
2018-09-25 16:35:01.045 (iDetect) Could not retreive available commands on 192.168.0.1
2018-09-25 16:35:01.046 (iDetect) Routerinfo:{'user': '<user account for SSH>', 'errorcount': 2, 'cmd': '', 'prospone': datetime.datetime(2018, 9, 25, 16, 36, 1, 46001), 'initialized': False}
2018-09-25 16:35:01.046 (iDetect) Did not retreive WLAN information from any router
2018-09-25 16:35:10.964 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:50.081134
2018-09-25 16:35:10.965 (iDetect) Did not retreive WLAN information from any router
2018-09-25 16:35:20.984 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:40.061711
2018-09-25 16:35:20.984 (iDetect) Did not retreive WLAN information from any router
2018-09-25 16:35:30.957 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:30.088598
2018-09-25 16:35:30.957 (iDetect) Did not retreive WLAN information from any router
Thanks for the quick update, now it is working
Code: Select all
2018-09-26 08:30:11.164 (iDetect) Considered absent: Miche-GSMl
2018-09-26 08:30:15.671 (iDetect) Polling presense data from 192.168.0.1
2018-09-26 08:30:16.219 (iDetect) Using password instead of ssh public key authentication for 192.168.0.1 (less secure!)
2018-09-26 08:30:16.220 (iDetect) Fetching data from 192.168.0.1 using: sshpass -p **secret** ssh -o StrictHostKeyChecking=no -o ConnectTimeout=2 -p9325 <username router>@192.168.0.1 export PATH=/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:$PATH;arp -a | grep '..:..:..:..:..:..' | awk '{print $ 4}';exit
2018-09-26 08:30:18.240 (iDetect) SSH subprocess for 192.168.0.1 timeout
2018-09-26 08:30:18.240 (iDetect) SSH command on 192.168.0.1 took 20 milliseconds.
2018-09-26 08:30:18.241 (iDetect) Routerinfo:{'user': '<username router>', 'initialized': True, 'port': 9325, 'prospone': datetime.datetime(2018, 9, 26, 8, 30, 48, 241000), 'cmd': "export PATH=/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:$PATH;arp -a | grep '..:..:..:..:..:..' | awk '{print $ 4}';exit", 'errorcount': 1}
2018-09-26 08:30:18.241 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:22.751 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:25.489953
2018-09-26 08:30:22.751 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:27.759 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:20.481861
2018-09-26 08:30:27.759 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:32.768 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:15.472683
2018-09-26 08:30:32.768 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:37.787 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:10.453300
2018-09-26 08:30:37.788 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:42.683 MQTT: Topic: domoticz/in, Message: {"idx":3417,"nvalue":0,"svalue":"26.8"}
2018-09-26 08:30:47.754 (iDetect) Prosponed connection to 192.168.0.1 for 0:00:00.486358
2018-09-26 08:30:47.754 (iDetect) Did not retreive WLAN information from any router
2018-09-26 08:30:52.769 (iDetect) Polling presense data from 192.168.0.1
2018-09-26 08:30:52.769 (iDetect) Using password instead of ssh public key authentication for 192.168.0.1 (less secure!)
2018-09-26 08:30:52.769 (iDetect) Fetching data from 192.168.0.1 using: sshpass -p **secret** ssh -o StrictHostKeyChecking=no -o ConnectTimeout=2 -p9325 <username router>@192.168.0.1 export PATH=/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:$PATH;arp -a | grep '..:..:..:..:..:..' | awk '{print $ 4}';exit
2018-09-26 08:30:53.742 (iDetect) ssh command on 192.168.0.1 returned:b'00:23:eb:78:00:d9\n5c:cf:7f:af:bd:a8\nd0:17:c2:ba:15:19\nc0:3f:d5:69:c5:19\n60:01:94:29:df:03\n4c:32:75:35:5e:6f\n5c:cf:7f:4c:52:27\n2c:3a:e8:2e:89:6d\n00:11:32:2c:12:f1\nf0:9f:c2:a6:cc:96\ne0:50:8b:32:5b:34\nd0:e7:82:da:08:fd\n44:c3:46:48:e8:2b\n00:1c:85:0a:41:f3\n8c:89:a5:cc:85:df\nd0:b1:28:37:4e:23\nb8:27:eb:16:63:96\n00:11:32:0f:0a:dc\n28:6c:07:85:e7:60\n5c:cf:7f:58:42:f1\nac:cf:23:6d:3e:58\n64:a2:f9:28:5a:a1\nf0:9f:c2:a6:c7:18\n00:11:32:2c:12:f2\n5c:cf:7f:f9:09:7a\n78:8a:20:83:e1:27\n'
2018-09-26 08:30:53.742 (iDetect) SSH command on 192.168.0.1 took 972 milliseconds.
2018-09-26 08:30:53.743 (iDetect) Found these devices connected:['00:23:EB:78:00:D9', '5C:CF:7F:AF:BD:A8', 'D0:17:C2:BA:15:19', 'C0:3F:D5:69:C5:19', '60:01:94:29:DF:03', '4C:32:75:35:5E:6F', '5C:CF:7F:4C:52:27', '2C:3A:E8:2E:89:6D', '00:11:32:2C:12:F1', 'F0:9F:C2:A6:CC:96', 'E0:50:8B:32:5B:34', 'D0:E7:82:DA:08:FD', '44:C3:46:48:E8:2B', '00:1C:85:0A:41:F3', '8C:89:A5:CC:85:DF', 'D0:B1:28:37:4E:23', 'B8:27:EB:16:63:96', '00:11:32:0F:0A:DC', '28:6C:07:85:E7:60', '5C:CF:7F:58:42:F1', 'AC:CF:23:6D:3E:58', '64:A2:F9:28:5A:A1', 'F0:9F:C2:A6:C7:18', '00:11:32:2C:12:F2', '5C:CF:7F:F9:09:7A', '78:8A:20:83:E1:27']
2018-09-26 08:30:53.743 Status: (iDetect) Connection restored for 192.168.0.1
2018-09-26 08:30:53.758 Status: (iDetect) Changing presence of iDetect - Miche-GSMl to On
Users browsing this forum: Bing [Bot] and 1 guest