966 Commits

Author SHA1 Message Date
Paulus Schoutsen
86aea83f64 Device tracker improvements 2015-09-15 23:35:28 -07:00
Jeff Schroeder
7c7b6ca05c Fix the asuswrt device tracker for dhcp leases with no hostname
Sometimes, hosts request dhcp leases without sending the hostname
they want to the dhcp server. This results in the entity_id being
`device_tracker.` as the dev_id is empty and things go downhill
from there.

The dhcp lease file looks like:
    admin@RT-AC66R:/tmp/home/root# cat /var/lib/misc/dnsmasq.leases
    86400 5c:c5:d4:79:4c:ad 192.168.1.226 chit-jsl3 *
    85242 8c:77:12:ad:d9:23 192.168.1.126 android-2c94abebaab16255 01:8c:77:12:ad:d9:23
    61985 b8:e9:37:73:47:f0 192.168.1.204 * 01:b8:e9:37:73:47:f0
    61982 b8:e9:37:ec:0d:7e 192.168.1.132 * 01:b8:e9:37:ec:0d:7e
    84584 00:20:6b:ca:31:c1 192.168.1.182 MC4650-CA31C1 01:00:20:6b:ca:31:c1
    86306 fc:e9:98:d6:4b:90 192.168.1.173 iLol 01:fc:e9:98:d6:4b:90
    74343 20:3a:07:f3:7e:ae 192.168.1.246 gatekeeper 01:20:3a:07:f3:7e:ae
    72374 b8:e9:37:5f:3d:06 192.168.1.34 SonosZP 01:b8:e9:37:5f:3d:06
    64697 00:0e:58:6f:59:d2 192.168.1.171 SonosZB 01:00:0e:58:6f:59:d2

Confirmed working on an Asus RT-AC66R with fw version: 3.0.0.4.376_3861
2015-09-14 20:33:14 -05:00
Paulus Schoutsen
7e75add144 Update nmap dependency 2015-09-13 23:35:12 -07:00
Paulus Schoutsen
eef1e65244 Fix converting config device tracker 2015-09-13 00:48:52 -07:00
Paulus Schoutsen
5edc4f148f Fix style 2015-09-13 00:10:59 -07:00
Paulus Schoutsen
880b5f0ad1 Add device_tracker.see service 2015-09-13 00:02:28 -07:00
Paulus Schoutsen
804b7669b7 Setup device tracker group at end of init 2015-09-12 23:08:16 -07:00
Paulus Schoutsen
bb42e264cb Device tracker sets up group again 2015-09-12 22:56:31 -07:00
Paulus Schoutsen
4ccedca3e5 Fix tests for device tracker 2015-09-12 09:15:28 -07:00
Paulus Schoutsen
f9b17ab026 Device tracker rewrite 2015-09-09 23:37:15 -07:00
Fabian Affolter
514b8eddb9 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:19:11 +02:00
Paulus Schoutsen
97e19908be Merge pull request #308 from nkgilley/actiontec
add support for home_interval variable to actiontec component
2015-09-02 12:51:53 -07:00
Nolan Gilley
b9b751d234 fix for last_results 2015-09-02 12:00:20 -04:00
Nolan Gilley
5533618bd2 fix comments for home_interval 2015-09-02 11:48:36 -04:00
Nolan Gilley
5b643a8106 fixes for Paulus' comments. 2015-09-02 11:46:09 -04:00
Michaël Arnauts
5099fb7680 Don't try to parse other entries in client list since they can be empty and are not used anyway. 2015-09-01 21:13:39 +02:00
Nolan Gilley
d2a13da930 pylint fix 2015-09-01 15:09:41 -04:00
Nolan Gilley
97076f1ff8 add support for home_interval variable 2015-09-01 14:43:14 -04:00
Paulus Schoutsen
03ceb667ba Hotfix for nmap -> v7.1 2015-09-01 08:50:45 -07:00
Paulus Schoutsen
a34b00bc9c Style fix for device tracker 2015-08-31 22:20:24 -07:00
Ryan Kraus
83440ad718 Fixed device tracker to install scanner requirements. 2015-08-31 22:11:17 -07:00
Paulus Schoutsen
0987a84bf4 Merge pull request #300 from balloob/nmap-fix
Migrate nmap_tracker to use different nmap lib
2015-08-31 22:06:32 -07:00
Paulus Schoutsen
b41706efe3 Make nmap work in Docker 2015-08-31 22:01:45 -07:00
Michaël Arnauts
12ead04faa Add Aruba Access Point device tracker 2015-08-31 11:36:12 +02:00
Paulus Schoutsen
78826648e3 style + dependency fix 2015-08-31 00:44:59 -07:00
Paulus Schoutsen
ffac067be8 Migrate nmap_tracker to use different nmap lib 2015-08-31 00:29:41 -07:00
Ryan Kraus
f5b98c86f0 Mostly PyLint and Flake8 updates.
Rewrote imports of exceptions to be from the exceptions module.
Made nmap scanner check for libnmap dependency without crashing.
Various flake8 and pylint updates.
2015-08-29 22:34:35 -04:00
Ryan Kraus
893ae15042 Changed component REQUIREMENTS to absolute versions. 2015-08-29 21:39:50 -04:00
Paulus Schoutsen
4b31a22a1c Merge pull request #286 from rmkraus/entity_cleanup
Entity cleanup
2015-08-28 17:25:51 -07:00
Ryan Kraus
936e20bdf7 Cleaned up some entities.
1) Modified device tracker entities to allow for attributes to be
overwritten with configuration data.

2) Modified ISY lights to hide brightness when off.
2015-08-28 20:17:07 -04:00
sfam
4ef4aa2095 fix pylint warnings 2015-08-28 00:09:24 +01:00
sfam
1aef768ff0 Initial support for THOMSON routers 2015-08-28 00:02:26 +01:00
Paulus Schoutsen
884af889a4 Merge pull request #268 from nkgilley/actiontec
device_tracker component: Actiontec MI424WR Verizon FiOS Router
2015-08-25 21:59:38 -07:00
Nolan Gilley
bc5a7564b1 fix formatting 2015-08-25 10:09:47 -04:00
Nolan Gilley
047b4abd82 Fix get_device_name and get_actiontec_data 2015-08-25 09:39:00 -04:00
Paulus Schoutsen
917db18b29 Fix netgear username/password combo 2015-08-24 23:32:07 -07:00
Nolan Gilley
93bd238be5 add return None for get_actiontec_data 2015-08-24 00:27:26 -04:00
Paulus Schoutsen
35489998df Allow for Netgear router discovery 2015-08-23 17:20:09 -07:00
Nolan Gilley
63e441c73f fix scan_devices 2015-08-20 10:35:01 -04:00
Nolan Gilley
ca515615b9 add support for recording decive name as ip address 2015-08-19 09:52:47 -04:00
Paulus Schoutsen
74308b2677 Upgrade nmap dependency 2015-08-18 14:37:53 -07:00
Nolan Gilley
6a830e3b90 fix for flake8 2015-08-18 17:14:26 -04:00
Nolan Gilley
b84d5760eb add to .coveragerc and try again to fix warnings. 2015-08-18 17:03:13 -04:00
Nolan Gilley
c471e39fa0 trying to fix more warnings... 2015-08-18 16:50:40 -04:00
Nolan Gilley
d2f01174e7 fixed warnings 2015-08-18 16:41:03 -04:00
Nolan Gilley
4d5f3da08b Initial commit for device_tracker component for Actiontec MI424WR Verizon FiOS Wireless Router 2015-08-18 16:12:01 -04:00
Chris Mulder
58fcf79340 Put new TP-Link device tracker class in same file as original and use the new one and have tailback to original one. 2015-08-10 20:03:43 +02:00
Chris Mulder
2c9c79ea61 Add support for TP-Link ArcherC9 to to device tracker component 2015-08-09 18:23:42 +02:00
Paulus Schoutsen
60ade75031 Add missing dependencies 2015-08-08 21:22:34 -07:00
Fabian Affolter
f84b3a509d update header 2015-08-06 22:24:23 +02:00