Commit Graph

537 Commits (274e4449ea81abf56326d14f1b627090f15f495d)

Author SHA1 Message Date
Teagan Glenn 8189ec2c8d Automatic polling (#3360)
* Test updating automatic

* Scan interval

* Schedule scan every time delta

* Pass around has

* Recursive issue

* Method invocation

* Oops

* Set up poll

* Default argument value

* Unused import

* Semicolon

* Fix tests

* Linting

* Unneeded throttle as it's handled by time event

* Use track time change event listener

* Disable lint rule

* Attribute removed - removing test

* Debug instead of info

* Unused import
2016-09-12 19:59:34 -07:00
clach04 c90cc77c41 bluetooth_le_tracker clarify header with LE (#3328) 2016-09-12 07:56:12 +02:00
Teagan Glenn 360a650370 Automatic Device Tracker Bug Fix (#3330)
* Iterate over items

* Pass display name as host name
2016-09-11 21:53:05 -07:00
Johann Kellerman dba78b02da Add voluptuous to locative (#3254) 2016-09-12 01:12:28 +02:00
Mal Curtis 8438001942 Fix TP-Link Archer C7 long passwords (#3225)
* Fix tplink C7 long passwords

Fixes an issue where passwords longer than 15 chars could not log in to Archer C7 routers.

* Truncate in correct place

* Add comment about TP-Link C7 pass truncation

* Fix lint error

* Truncate comment at 79 chars not 80
2016-09-10 08:08:51 -07:00
Johann Kellerman 47864fc7d7 Owntracks voluptuous fix (#3191) 2016-09-06 18:35:10 -07:00
Bart274 9ade87013e Bluetooth: keep looking for new devices (#3201)
* keep looking for new devices

* Update bluetooth_tracker.py

* change default value for tracking new devices

* remove commented code
2016-09-06 11:51:36 -06:00
Johann Kellerman 17a2cac7e1 Use Voluptuous for Luci and Netgear device trackers (#3123)
* Use Voluptuous for Luci and NEtgear device trackers

* str_schema shortcut

* Undo str_schema
2016-09-05 11:37:36 -06:00
Johann Kellerman ad52816595 Use voluptuous for BT and Owntracks device trackers (#3187)
🐬
2016-09-04 11:10:20 -06:00
Johann Kellerman 22362727e4 Use voluptuous for Unifi, Ubus (#3125) 2016-09-04 10:06:16 +02:00
Open Home Automation db7f6a328f Bugfix: ctach Runtime errors (#3153)
"RuntimeError: Disable scan failed" has been seen in a live installation
2016-09-03 16:47:11 -07:00
Dan 68ef55a982 Add exclude option to nmap device tracker (#2983)
* Add exclude option to nmap device tracker

Adds an optional exclude paramater to nmap device tracker.
Devices specified in the exclude list will never be scanned
by nmap. This can help to reduce log spam.

ex:
```
device_tracker:
  - platform: nmap_tracker
    hosts: 10.0.0.1/24
    home_interval: 1
    interval_seconds: 12
    consider_home: 120
    track_new_devices: yes
    exclude:
      - 10.0.0.2
      - 10.0.0.1
```

* Handle optional exclude

* Style fixed
2016-09-03 16:41:38 -07:00
Johann Kellerman 91a3522100 Improve voluptuous and login errors for Asus device tracker (#3170) 2016-09-03 17:32:43 -06:00
Johann Kellerman fe7f797ad9 Add voluptuous for tomato and SNMP (#3172) 2016-09-03 17:30:48 -06:00
Teagan Glenn 601395bc12 Automatic ODB device tracker & device tracker attributes (#3035) 2016-09-03 18:38:17 +02:00
Johann Kellerman a571271c39 Use voluptuous for Aruba (#3119) 2016-09-01 22:28:46 -06:00
Johann Kellerman 586e47d08d Use Voluptuous for BT Home Hub (#3121) 2016-09-01 22:28:28 -06:00
Johann Kellerman 78f0e681ed Use voluptuous for Fritzbox and DDWRT (#3122) 2016-09-01 22:28:03 -06:00
Johann Kellerman dadcf92290 Allow 'None' MAC to be loaded from known_devices (#3102) 2016-09-02 00:02:35 +02:00
Open Home Automation 83f1272662 Fix for BLE device tracker (#3019)
* Bug fix tracked devices
* Added scan_duration configuration parameter
2016-09-01 22:18:58 +02:00
Fabian Affolter 24d412938e Use voluptuous for HDMI CEC & CONF_DEVICES constants (#3107) 2016-09-01 22:04:00 +02:00
Greg Dowling 0943cc78cd Merge pull request #2973 from nma83/owntracks-waypoint-import
Owntracks waypoint import
2016-08-31 15:25:49 +01:00
NMA 12e2c38436 Code review feedback from @pavoni 2016-08-31 08:16:01 +05:30
Johann Kellerman 55d305359e Device tracker component & platform validation. No more home_range. (#2908)
* Device tracker component & platform validation. No more home_range.

* Mock, bluetooth

* Renamed _CONFIG_SCHEMA. Raise warning for #1606

* test duplicates

* Fix assert

* Coverage

* Typing

* T fixes
2016-08-30 10:22:52 -06:00
Daniel 62bbda1f82 Bug fix for asuswrt device_tracker. Issue #3015 2016-08-29 08:23:20 +02:00
Daniel Høyer Iversen 821b3d7fac Bug fix for asuswrt device_tracker. Issue #3015 (#3016)
🐬
2016-08-28 17:34:01 -06:00
NMA 70fe7f747a * Improved zone naming in waypoint import
* Added more test coverage for owntracks and zone
2016-08-28 13:18:30 +05:30
Johann Kellerman 6f1c97b9d3 Voluptuous for AsusWRT (#2998)
* Voluptuous for AsusWRT
2016-08-27 22:30:06 +02:00
NMA 5a25c74276 Refactored zone creation based on code review feedback, enhanced configuration 2016-08-26 19:52:08 +05:30
NMA 2ca3541eac Fixed zone test break and code style issues 2016-08-25 21:33:07 +05:30
NMA 95b7a8c4b9 Removed redundant assignment to CONF_WAYPOINT_IMPORT_USER 2016-08-25 17:07:53 +05:30
NMA 185ae50e24 Rebased to upstream 2016-08-25 17:02:45 +05:30
NMA e6b7511e7d Added test for Owntracks waypoints import 2016-08-25 16:52:22 +05:30
NMA 1ada7d6211 Backend support for importing waypoints from owntracks as HA zones 2016-08-25 16:52:22 +05:30
NMA 2bea5a484f Added test for Owntracks waypoints import 2016-08-25 16:47:34 +05:30
Teagan Glenn d2f7b3c7db Merge pull request #2922 from dpford/tplink-5g
Add tplink Archer C7 device tracking support for 5Ghz networks
2016-08-21 16:49:19 -06:00
Dan Ford 2b4980ae5d Add tplink Archer C7 device tracking support for 5Ghz networks 2016-08-21 13:09:44 -07:00
Nolan Gilley 635e5c8eba Add voluptuous to ecobee, speedtest.net, fast.com, actiontec, forecast.io (#2872)
* add voluptuous

* fixes for comments

* str to cv.string
2016-08-21 10:29:13 -07:00
Open Home Automation ccd8f51253 Ble tracker (#2810)
* Added Bluetooth Low Energy device tracker

* Added new file(s)

* Fixed pylint errors

* Remove traling zeros from device names

* recreated deleted file

* Added requirements

* Renamed to bluetooth_le tracker
Removed gattlib from tests
Minor code cleanup

* - fixed .coveragerc bug
- changed discovery algorithm, new devices will only be added if seen 5 times to make sure
  HA doesn't blow the database with devices just passing by
2016-08-17 23:41:05 -07:00
Robbie Trencheny 37561765ff Add Gravatar support to device_tracker (#2836)
* Support passing an email address linked to Gravatar as the picture in known_devices.

* Add a dedicated field for Gravatar

* Bring tests back up to where they were before Gravatar.

* Add tests for Gravatar.
2016-08-16 21:08:57 -07:00
pavoni 41dad9a8f7 Tidy warnings. 2016-08-16 09:48:13 +01:00
pavoni c0b1ff0eaf Handle accuracy zero correctly in enter/leave events. 2016-08-15 13:08:30 +01:00
NMA 75e6ed87d6 Backend support for importing waypoints from owntracks as HA zones 2016-08-12 14:48:28 +05:30
Fabian Affolter 5faba21b8c Upgrade python-nmap to 0.6.1 (#2681) 2016-07-31 13:47:46 -07:00
Johann Kellerman 4f89230251 Update icloud to respect track=false. (#2640) 2016-07-27 20:38:55 -07:00
Johann Kellerman 8c728d1b4e Update icloud device_tracker (#2614)
*  slugify() for dev_id (fixes #2162) [Keep space replacement to not impact known_devices.yaml]
*  pyicloud upgrade 0.9.1
*  config validation
*  Only poll icloud every 4 minutes...
*  Immediately pull device state on HASS start
*  Added new test with icloud char e' acute [chr(233)]
* Suppress pyicloud logging
2016-07-26 23:53:31 +02:00
Paulus Schoutsen ef64e11b50 known devices yaml robustness (#2523) 2016-07-13 23:56:02 -07:00
Dale Higgs ab63fbff3f Fix AsusWRT to prevent SSH key confusion (#2467)
Changed "pub_key" to "ssh_key" while maintaining backwards compatibility. Quotes were also updated to match across the file.
2016-07-08 08:58:31 -07:00
Jordan Keith 83a72ab4dc Update unifi.py to support sites (#2434)
* Update unifi.py

Add support for a site that is not the default within the Unifi Controller.

i.e. A controller with multiple sites:

 - Home
 - Friends
 - Parents (default)

Supplying the identifier for 'Home' now means that the devices tracked will be associated with 'Home'.

* Update test_unifi.py

Fix test modules as well.
2016-07-04 08:20:00 -07:00
Matthew Treinish aa3d0e1047 Fix incorrect check on presence of password and pub_key (#2355)
This commit fixes an issue with the use of None in default values
for the config get() calls in __init__() of AsusWrtDeviceScanner.
These values are cast as strings and when a NoneType is cast it
returns the string "None" this broke the check for the existence
of these fields. This commit fixes the issue by changing the default
value to be an empty string '' which will conform with the behavior
expected by the ssh login code.

Closes #2343
2016-06-22 17:01:39 -07:00
Lewis Juggins 7b8b78ec0e BT Home Hub 5 device tracker support (#2250) 2016-06-14 22:41:49 -07:00
Per Sandström 38030fcfca ASUSWRT Autodetect protocol (#2300) 2016-06-14 22:17:32 -07:00
Paulus Schoutsen 39913075f4 Fix Locative view name 2016-06-14 22:12:44 -07:00
Matthew Treinish 1381984b77 Add ssh public key support to the asuswrt component (#2287)
The pexpect.pxssh module has support for using public key
authentication. [1] This commit adds support for leveraging that and
establishing a ssh connection with a public key instead of a password.

[1] http://pexpect.readthedocs.io/en/stable/api/pxssh.html#pexpect.pxssh.pxssh.login
2016-06-12 21:27:41 -07:00
Paulus Schoutsen 30f74bb3ca Migrate to generic discovery method (#2271)
* Migrate to generic discovery method

* Add tests for discovery
2016-06-11 17:43:13 -07:00
Paulus Schoutsen b60806583c Update asuswrt.py 2016-06-10 21:14:11 -07:00
Jeffrey Lin 30f5727b40 Added support for AP mode in asuswrt (#2263)
* Added support for AP mode in asuswrt

* Corrected number of return values in asuswrt
2016-06-09 21:30:47 -07:00
Fabian Affolter 69f2f0f34a Upgrade pysnmp to 4.3.2 (#2236)
* Upgrade pysnmp to 4.3.2

* Fix pylint issue
2016-06-05 15:57:46 -07:00
Paulus Schoutsen 1798df7686 Handle invalid dev ids for dev tracker + owntracks (#2174) 2016-05-26 21:49:44 -07:00
Paulus Schoutsen 15e329a588 Tons of fixes - WIP 2016-05-21 15:01:33 -07:00
pavoni 8ff9506138 Ignore acc: 0 updates. 2016-05-19 16:16:43 +01:00
pavoni dd1703469e Handle region enter/leave with spaces. 2016-05-19 16:04:55 +01:00
froz 8d34b76d51 Restored telnet as an option. Activate with config option 'protocol: telnet'. Default is ssh (#2096) 2016-05-17 15:55:12 -07:00
froz 49acdaa8fd Device Tracker - ASUSWRT: Replaced telnet with ssh (#2079) 2016-05-15 12:20:17 -07:00
Paulus Schoutsen 6901e5ea5e Random fixes (#1996)
* OwnTracks handle malformed data better

Fixes #1991 .

* Remove dependency for util.dt
2016-05-07 10:16:14 -07:00
Bart274 d4fe6f385a Update pyicloud version (#1849)
* Update requirements_all.txt

* Update icloud.py
2016-04-24 06:49:04 +02:00
Dan 43a94995c2 Update unifi version
New unifi version has a fix that will allow it to install correctly
2016-04-21 07:56:19 -07:00
Manoj c1ca13d613 Add bluetooth device tracker (#1830)
This tracker discovers new devices on boot and tracks bluetooth devices
periodically based on interval_seconds value. Devices discovered are
stored with 'BT_' as the prefix for device mac.

Requires PyBluez
2016-04-19 08:18:46 -07:00
deisi e8bf47ff59 Fix for the issue #1323 (#1835) 2016-04-17 12:32:04 -07:00
Alexander Fortin 24569e6169 Make owntracks.py pylint clean (#1808)
* refactor validation logic into validate_payload function
* add debugging messages to validation
2016-04-11 22:02:47 -07:00
Paulus Schoutsen 197388a9b2 Prevent device tracker error 2016-04-10 17:35:33 -07:00
OpenDave15 91b1ebaeb7 Allow use of pynetgear 3.3 port parameter. (#1777)
* Allow use of pynetgear 3.3 port parameter.

* Fix lint problem
2016-04-09 20:29:06 -07:00
Paulus Schoutsen b87e2437aa Prevent device tracker from creating invalid YAML (#1774) 2016-04-09 13:38:51 -07:00
Greg Dowling a7f80608c6 Handle Share off for events in OwnTracks app (#1737) 2016-04-07 12:21:25 -07:00
Jan Harkes a7016e4b32 Move CONF_STATE_TOPIC, CONF_COMMAND_TOPIC and CONF_RETAIN to mqtt component. 2016-04-06 22:51:39 -04:00
Jan Harkes 88da42fe62 Config validation for MQTT device_tracker platform. 2016-04-06 22:51:38 -04:00
Paulus Schoutsen 5baa98b79f Add initial config validation 2016-03-28 23:46:12 -07:00
Paulus Schoutsen fe73cbbcb6 Revert pyicloud upgrade 2016-03-27 22:14:51 -07:00
pavoni c7e49f20d3 Cast acc to float before comparison. 2016-03-26 22:38:24 +00:00
Bart274 dd691a4684 upgrade pyicloud version 2016-03-24 17:22:44 +01:00
Fabian Affolter fef682b192 Revert "Upgrade pysnmp to 4.3.2"
This reverts commit 38e6f8fdab.
2016-03-24 16:23:57 +01:00
Fabian Affolter 38e6f8fdab Upgrade pysnmp to 4.3.2 2016-03-23 23:57:32 +01:00
Fabian Affolter f7943d9448 Upgrade python-nmap to 0.6.0 (attempt to fix #1592) 2016-03-23 22:25:35 +01:00
Paulus Schoutsen cde05b91ce Better netgear logging 2016-03-14 21:12:42 -07:00
pavoni fc455a1047 Allow entry into passive zones. 2016-03-13 18:01:29 +00:00
Bart274 312d0320c6 Update __init__.py 2016-03-11 14:20:08 +01:00
Bart274 284a1fd08e add gps_accuracy and battery information to the see function
the see function from device_tracker doesn't pass the gps_accuracy and the battery information to the see service, so this information gets lost.
2016-03-11 14:10:04 +01:00
Fabian Affolter f22a40c3e8 Fix PEP257 issues 2016-03-09 11:15:04 +01:00
Fabian Affolter cc7a4d545e Fix PEP257 issues 2016-03-07 21:18:53 +01:00
Fabian Affolter 7ff9aecd4e Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
Paulus Schoutsen 5222c19b4c Fix TP-Link get auth token 2016-03-07 08:29:05 -08:00
Paulus Schoutsen abc7243bc8 Merge pull request #1484 from balloob/device-tracker-remove-old-conf-format
Device tracker remove old conf format
2016-03-06 21:41:59 -08:00
Nuno Sousa 7b45001879 Add ArcherC7 150427 support 2016-03-05 23:15:48 +00:00
Paulus Schoutsen fb46eff5f8 Device tracker: remove support for old config 2016-03-05 11:43:23 -08:00
Hydreliox c04555d7b1 Add GPS accuracy check for a location update or an event update
Add tests related to this
Great thanks to @pavoni for his support on this fix
2016-03-04 20:19:50 +01:00
Dan Smith e59d6b7da0 Fix SNMP device_tracker results without MAC addresses
@llauren reported that his router returns empty MAC addresses for things
on different subnets, which causes heartache for the HA snmp device tracker.
2016-03-02 11:43:08 -08:00
Paulus Schoutsen 967a751da1 Add entity_picture property 2016-02-23 22:41:24 -08:00
Paulus Schoutsen 22b47ce9c6 Merge pull request #1314 from balloob/fix_own_tracks_mobile_beacon
Fix own tracks mobile beacon race condition
2016-02-20 00:27:07 -08:00
Dan Smith 27f456ca70 Add Ubiquiti Unifi device tracker
Ubiquiti's Unifi WAP infrastructure has a central controller (like mfi and uvc)
that can be queried for client status. This adds a device_tracker module that
can report the state of any client connected to the controller.
2016-02-19 15:24:00 -08:00
Paulus Schoutsen e80309c03c Fix imports (using isort) 2016-02-18 21:27:50 -08:00
pavoni 9f7ce23e80 Fix suspect race condition in leave region.
Add safely check for double beacon entry. Remove battery for beacons.
Disable lint warning.
2016-02-18 12:52:40 +00:00
pavoni 2e75a58372 Fix outtracks bug with passive zones. 2016-02-11 20:28:02 +00:00
carlosmgr 3d695405b7 pep8 2 time 2016-02-03 00:03:50 +00:00
carlosmgr 55932b048e fix pep8 2016-02-02 23:54:32 +00:00
carlosmgr 7f87df20c2 ssh aruba 2016-02-02 22:40:04 +00:00
carlosmgr e91c8e4143 ssh aruba.py
req pexpect
2016-02-02 21:49:11 +00:00
carlosmgr b3ef2bd2d9 Update aruba.py 2016-02-01 12:23:20 +00:00
pavoni 03e7ac2a0e Fix typo. 2016-01-29 22:11:00 +00:00
pavoni c5cdf6d7cf Copy kwargs, remove traces. 2016-01-29 22:11:00 +00:00
pavoni 5a7e380396 Revise beacon name. Add debug. 2016-01-29 22:11:00 +00:00
pavoni 09ef2e1b8c Add docstring, remove trace. 2016-01-29 22:11:00 +00:00
pavoni 80d2f35cc5 First cut mobile beacon tracking. 2016-01-29 22:11:00 +00:00
pavoni 468a8a1013 Improve owntracks events, add support for stationary ibeacons. 2016-01-29 09:39:00 +00:00
Paulus Schoutsen cbc6323438 Fix imports 2016-01-28 21:45:26 -08:00
Paulus Schoutsen bb3dd47088 Merge pull request #992 from balloob/sections
Add support for sections in the frontend [Fixes #100705168]
2016-01-24 22:58:27 -08:00
Paulus Schoutsen f6c53896e3 Allow groups to be used as views 2016-01-24 22:54:45 -08:00
Paulus Schoutsen dc5d652d31 Update version pynetgear 2016-01-24 09:43:06 -08:00
Philip Lundrigan f96c5aa62f Fix bug in locative logic 2016-01-15 13:19:53 -07:00
Paulus Schoutsen e6846e7eb9 Convert asuswrt user/pass to strings 2016-01-12 22:28:53 -08:00
Paulus Schoutsen 3b7b12bbd5 Make Flake8 happy 2016-01-12 21:53:27 -08:00
xifle 6c94650603 Accept lower & upper case for owntracks 'home' region 2016-01-10 15:00:14 +01:00
Paulus Schoutsen 31f2707b2f Merge pull request #841 from xifle/dev
Owntracks transition events
2016-01-03 11:19:02 -08:00
xifle d244d3b599 Fixed flake8 style errors 2016-01-03 17:42:49 +01:00
xifle 82904c59ce Fixed code style 2016-01-03 17:12:11 +01:00
Richard 305c87a9c9 Fix reference known_devices.yaml 2016-01-02 16:01:58 -06:00
Paulus Schoutsen 6d35bdafee Merge pull request #832 from R1chardTM/device-tracker
Add service description device tracker
2016-01-02 10:34:05 -08:00
Paulus Schoutsen 217ffc215b Update PyNetgear version 2016-01-02 10:27:11 -08:00
xifle cbd3860585 Merge branch 'dev' of https://github.com/balloob/home-assistant into dev 2016-01-02 18:56:14 +01:00
xifle 5804dde0e9 Enables the use of owntracks transition events
By using the configuration option "use_events:yes" in the device_tracker section,
only 'enter'/'leave' events are considered to calculate the state of a tracker device.
The home zone is defined as the owntracks region 'home'. Other regions may also be defined, the name of
the region is then used as state for the device. All owntracks regions, the 'Share' setting must be enabled in the app.
2016-01-02 18:26:59 +01:00
Richard cdf2179b3e Describe device tracker see service 2016-01-02 10:54:26 -06:00
Philip Lundrigan ce152e9c94 Simplify logic 2015-12-31 12:39:36 -07:00
Philip Lundrigan 5d953061e8 Remove unnecessary error checking 2015-12-31 11:56:27 -07:00
Philip Lundrigan bdb6182921 Changes to locative based on tests 2015-12-31 11:56:27 -07:00
Philip Lundrigan 7d41ce4e46 Switch from json messages to plain text messages 2015-12-30 22:43:32 -07:00
Philip Lundrigan c23375a18b Add case for test message 2015-12-30 22:42:11 -07:00
Philip Lundrigan 25e1432403 Fix style issues 2015-12-30 12:30:49 -07:00
Philip Lundrigan adfcfad488 Update locative functionality 2015-12-30 12:26:03 -07:00
Philip Lundrigan 0ac1759395 Rename geofancy to locative (fix #761) 2015-12-21 11:05:20 -07:00
Philip Lundrigan c564c73617 Return true when iCloud finishes setting up
Otherwise an error will be reported even though it set up correctly.
2015-12-17 13:31:33 -07:00
kevinpanaro 4f6243fe0e changed pyicloud version to 0.7.2 2015-12-15 21:07:34 -05:00
Fabian Affolter fcdaa923c5 Update docstrings 2015-12-15 10:42:05 +01:00
Paulus Schoutsen 2e0042adb0 Tweak iCloud device tracker 2015-12-14 21:39:48 -08:00
Paulus Schoutsen 79c92cd0c4 Merge branch 'pr/616' into dev 2015-12-14 21:31:20 -08:00
Fabian Affolter 87d40f6673 Move config details to doc 2015-12-14 18:19:50 +01:00
caius cc962c6bb2 Add some lint suggested modifications 2015-12-13 13:20:52 -08:00
caius 9833b4b663 Add the fritz device tracker to track established connections to FritzBox routers 2015-12-13 13:20:52 -08:00
Daren Lord 254889e3fd Fixing logging for pylint 2015-12-04 09:23:05 -07:00
Daren Lord 9ecc08c0c8 Adding in pyicloud to requirements_all.txt 2015-12-04 09:19:16 -07:00
Daren Lord e3d4e3ad4d Increasing scan interval. Moved imports. 2015-12-04 09:08:46 -07:00
Daren Lord b6342ed848 Merge branch 'dev' of https://github.com/balloob/home-assistant into findiphone 2015-12-04 09:05:23 -07:00
Johan Carlquist 6a021c9ef6 Support for legacy nmap.
Older nmap like the one bundled with Ubuntu Precise (12.04), 5.21
requires that you specify what unit the value to --host-timeout is.
2015-11-28 20:43:27 +01:00
Daren Lord 8074854731 Fixing formatting 2015-11-21 21:12:41 -07:00
Daren Lord fff6b24449 Switching to new device scanner setup. 2015-11-21 21:04:28 -07:00
Daren Lord 396a65ab03 Merge branch 'dev' of https://github.com/balloob/home-assistant into findiphone 2015-11-21 15:26:44 -07:00
Daren Lord c60bb35d4a Fixed lint errors 2015-11-12 23:40:30 -07:00
Daren Lord 90007a04d3 Adding iCloud device_tracker component. Allow to track devices registered with iCloud 2015-11-12 23:37:15 -07:00
Paulus Schoutsen 16904452b8 Merge pull request #614 from persandstrom/asuswrt_not_loading
ASUSWRT more logging and more robust
2015-11-12 11:43:49 -08:00
Per Sandström 158d9e27ff more robust and more logging 2015-11-12 20:10:25 +01:00
Tom Duijf 5503c12cfd Fixes memory consumption issue 2015-11-11 21:54:33 +00:00
Fabian Affolter 97f9f8aa49 Update link to docs (Jekyll 3 update) 2015-11-09 13:12:18 +01:00
Nolan Gilley e961dd5f95 increase valid for time to 60 since I was having some issues. removed deprecated lines. 2015-10-30 07:00:35 -04:00
Nolan Gilley bcb2451752 fix pylint warning 2015-10-28 17:47:13 -04:00
Nolan Gilley 8eeca94517 removed home_interval option since it was added to the main device_tracker component 2015-10-28 17:43:41 -04:00
Nolan Gilley 3b37a7b737 bugfix for actiontec device tracker 2015-10-28 17:20:15 -04:00
Krzysztof Koziarek fbb73dd5da fixed pylint warnings 2015-10-26 11:50:09 +01:00
Krzysztof Koziarek c9f1dce6a2 Coding style fixes 2015-10-26 11:32:00 +01:00
Krzysztof Koziarek 50fbd83b3d corrected flake8 warnings 2015-10-24 11:20:57 +02:00
Krzysztof Koziarek 29c9c5a7ec Add new OpenWRT presence detection routine based on ubus instead of luci 2015-10-23 17:01:42 +02:00
Fabian Affolter 403889bbeb Move configuration details to docs 2015-10-13 20:55:45 +02:00
Fabian Affolter 6ca50d8b5c Move configuration details to docs 2015-10-13 20:55:15 +02:00
Fabian Affolter 0369a9ee0d Move configuration details to docs 2015-10-13 20:54:48 +02:00
Fabian Affolter 5a6ff9a69a Move configuration details to docs 2015-10-13 20:54:15 +02:00
Fabian Affolter 796cce78bc Move configuration details to docs 2015-10-13 20:52:30 +02:00
Fabian Affolter 77430c0687 Move configuration details to docs 2015-10-13 20:52:08 +02:00
Fabian Affolter c33942d6e2 Move configuration details to docs 2015-10-13 20:51:30 +02:00
Fabian Affolter 3b91f89173 Move configuration details to docs 2015-10-13 20:50:53 +02:00
Fabian Affolter c74f46794e Move configuration details to docs 2015-10-13 20:50:15 +02:00
Fabian Affolter 966fd8f24d Move configuration details to docs 2015-10-13 20:49:28 +02:00
Fabian Affolter 8253fdfc13 Add newline 2015-10-13 20:49:14 +02:00
Fabian Affolter cb7b5f8d15 Move configuration details to docs 2015-10-13 20:45:29 +02:00
Fabian Affolter b0d8eaeda9 Move configuration details to docs 2015-10-13 20:44:18 +02:00
Paulus Schoutsen e2f187879c Merge pull request #511 from wind-rider/geofancy
Geofancy
2015-10-13 00:05:17 -07:00
Heiko Rothe 021a374a6a Merge branch 'dev' of https://github.com/mKeRix/home-assistant into dev 2015-10-12 22:44:20 +02:00
Heiko Rothe bbec34d0e6 Merge remote-tracking branch 'refs/remotes/balloob/dev' into dev 2015-10-12 22:43:55 +02:00
Heiko Rothe a6cb19b27d Fixed an issue with the initiation of the new attributes 2015-10-12 22:42:45 +02:00
Hans Bakker b74e70d4e0 Fixes based on balloob's comments 2015-10-12 20:58:24 +02:00
Heiko Rothe 2f2bd7a616 Fixed pylint and pep8 violations 2015-10-12 09:18:55 +02:00
Hans Bakker 1eb3610a11 Style fixes 2015-10-12 00:28:39 +02:00
Hans Bakker 6a969208e9 Initial commit for Geofancy device tracker. 2015-10-12 00:14:05 +02:00
Guillaume SABBE a1e5bea3ab When IPv6 is enabled, dnsmasq has a configuration line with the DUID.
This looks like this
61072 b8:27:eb:e1:4e:4d 192.168.0.4 domotycoon *
61072 b8:27:eb:b8:10:6b 192.168.0.5 pimonitor *
duid 00:03:00:01:ac:22:0b:e9:98:50
When using match.group() without testing if match != None, you get a traceback.
2015-10-11 15:21:53 +02:00
Paulus Schoutsen 8a04e1f5f4 Device tracker configuration fix
Fixes #498
2015-10-08 22:19:15 -07:00
Paulus Schoutsen 9f33b8f541 DDWRT - match multiple output variants
Fixes #481
2015-10-08 22:15:12 -07:00
Paulus Schoutsen 0624725e21 Ignore nmap style issue - pylint bug 2015-10-08 21:45:51 -07:00
Paulus Schoutsen dc5f0ef314 NMap: fix hostname resolver
Fixes #482
2015-10-08 21:01:38 -07:00
Fabian Affolter 28b107ffa9 Move details from header to docs 2015-10-09 00:27:29 +02:00
Tom Duijf ee23c0fe14 cleaner logging 2015-10-08 14:54:20 +00:00
Tom Duijf 721c1d0f54 styling fix for flake 2015-10-08 10:24:55 +00:00
Tom Duijf 85bf6cb568 Added pylint disables 2015-10-08 10:01:10 +00:00
Tom Duijf 213a1fe4ba Various fixes, CI validation 2015-10-08 08:00:30 +00:00
Tom Duijf ae6f651c7d styling and version for requirement 2015-10-07 23:22:29 +00:00
Tom Duijf 7cb0f805ee fixed loop 2015-10-07 22:17:49 +00:00
Tom Duijf d556e5979a Updated misc files and code styling 2015-10-07 21:45:24 +00:00
Tom Duijf 9377b647f5 removed debug logging 2015-10-07 21:05:27 +00:00
Tom Duijf 469f35d25f various fixes, initial working version 2015-10-07 21:04:34 +00:00
Tom Duijf a58382e763 Fixed b/octet to mac adress conversion 2015-10-07 16:57:01 +00:00
Tom Duijf 0fb9e1b16c Initial commit of snmp device tracker 2015-10-06 21:26:32 +00:00
Paulus Schoutsen 8490d6126a OwnTracks robustness improvement 2015-10-03 10:29:00 -07:00
Paulus Schoutsen b2919c6504 Fix gps accuracy issue 2015-10-02 13:49:55 -07:00
Paulus Schoutsen 9bdfa89b7c More robust geofence checking 2015-10-02 08:16:53 -07:00
Paulus Schoutsen 1dc9bfdf73 Update config zones 2015-09-29 23:08:37 -07:00
Paulus Schoutsen 5ad27d8cdb Add support for zones to Home Assistant 2015-09-28 23:13:13 -07:00
Paulus Schoutsen 4e3bd5f2a9 Add service descriptions 2015-09-26 23:17:04 -07:00
Heiko Rothe 1553844279 Added support for the newest tp-link firmware
Currently this seemingly only applies to the Archer C9
2015-09-22 22:48:43 +02:00
Paulus Schoutsen 46a0173e31 Add demo device tracker platform 2015-09-21 22:46:08 -07:00
Paulus Schoutsen ca698ff063 remove debug statement 2015-09-20 20:24:31 -07:00
Paulus Schoutsen a866d515f7 Make owntracks more robust 2015-09-20 20:09:53 -07:00
Paulus Schoutsen 506c88dbaf Fix owntracks bugs 2015-09-20 12:13:51 -07:00
Paulus Schoutsen 30492cc685 Fix tests and linting 2015-09-20 11:46:01 -07:00
Paulus Schoutsen 19d40612e6 Add home_range to device tracker 2015-09-20 09:35:03 -07:00
Paulus Schoutsen 68286dcef8 initial owntracks support 2015-09-20 00:27:50 -07:00
Paulus Schoutsen 6352f10d9e Device tracker minor tweak 2015-09-19 21:02:54 -07:00
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