Commit Graph

1607 Commits (90e2aefd2346eab47890e43aaa04b4705580acb4)

Author SHA1 Message Date
Jeff Schroeder 0afb6114c5 Make the entity names for systemmonitor sensors a bit nicer
This prevents them from having trailing whitespace, which makes them
end with `_`.
2015-09-14 21:20:41 -05: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 2fe8b154f1 Fix state automation configuration 2015-09-14 18:22:49 -07:00
Paulus Schoutsen bf64956265 Merge pull request #368 from stefan-jonasson/dev
Implemented the if condition support in numeric state
2015-09-14 17:57:34 -07:00
Jon Maddox e8c3eaab33 style tweaks 2015-09-14 17:39:43 -04:00
Jon Maddox fcbeddeb57 describe airplay part 2015-09-14 17:34:57 -04:00
Jon Maddox 50b23e1969 adds airplay speakers as media_players 2015-09-14 17:27:00 -04:00
Fabian Affolter 984f01359c Fix docstring 2015-09-14 21:48:29 +02:00
Stefan Jonasson d5198d4242 Implemented the if condition support in numeric state 2015-09-14 20:33:01 +02:00
Per Sandström f5d1da1d53 and pylint... 2015-09-14 19:42:36 +02:00
Per Sandström 13ca42e187 fixes from review 2015-09-14 17:33:43 +02:00
Fabian Affolter fe7134b897 Add glances sensor 2015-09-14 14:08:30 +02:00
Fabian Affolter 27845d3fc5 Allow decimal places to be set 2015-09-14 10:44:07 +02:00
Fabian Affolter 6dc877d8de Add command sensor 2015-09-14 10:07:27 +02:00
Paulus Schoutsen dd71e4fdd1 Record in logbook when automation triggered 2015-09-14 00:02:33 -07:00
Paulus Schoutsen 13d40fe6ec Allow firing events in script 2015-09-13 23:54:48 -07:00
Paulus Schoutsen 7e75add144 Update nmap dependency 2015-09-13 23:35:12 -07:00
Paulus Schoutsen 2df26a0d1a Fix sensor.systemmonitor 2015-09-13 23:29:13 -07:00
Paulus Schoutsen 965730eb60 Allow setting name for command switch 2015-09-13 23:04:49 -07:00
Paulus Schoutsen 2a11d02fe4 Add if to automation 2015-09-13 22:27:27 -07:00
Paulus Schoutsen 046c5653cb Add latest version of polymer repo 2015-09-13 20:58:22 -07:00
Paulus Schoutsen f86fcdcaf5 Merge pull request #363 from balloob/logbook-entry
Add custom entries to logbook
2015-09-13 20:52:09 -07:00
Paulus Schoutsen 835bc1c492 Fix style issue 2015-09-13 18:40:54 -07:00
Paulus Schoutsen de5a2fee83 Add custom entries to logbook 2015-09-13 18:30:44 -07:00
Roy Hooper 209499e82b Reduce media player scan frequency to 10s 2015-09-13 20:54:20 -04:00
Roy Hooper 9b47241a46 switch to default polling cycle to solve multiple instance issue 2015-09-13 20:49:09 -04:00
Paulus Schoutsen 513f6e9c3c Merge pull request #353 from stefan-jonasson/dev
numeric_state automation platform
2015-09-13 17:13:06 -07:00
Paulus Schoutsen 9582eae48e Merge pull request #359 from rhooper/sonos-netdisco-fix
Prevent duplicate instances of sonos devices during netdisco
2015-09-13 13:56:10 -07:00
Roy Hooper d4834ff408 Add hass property to Entity to prevent 'Attribute hass is None' error during self.update_ha_state 2015-09-13 16:53:31 -04:00
Roy Hooper ce22f3c82d Implement unique_id to prevent duplicate devices 2015-09-13 16:53:31 -04:00
Fabian Affolter 40aa661340 Update docsstring 2015-09-13 22:27:28 +02:00
Per Sandström 6c3a78df30 fixed spelling 2015-09-13 21:07:16 +02:00
Per Sandström 964a1f9aef merge from dev 2015-09-13 21:00:51 +02:00
Stefan Jonasson 8360ab265c Not used to pylint and flake8 ... 2015-09-13 20:34:45 +02:00
Stefan Jonasson e3dcb45879 Fixed pylint error 2015-09-13 20:27:11 +02:00
Per Sandström 683a80f5f4 tests pass 2015-09-13 20:21:02 +02:00
Stefan Jonasson 9904727cde homeassistant/components/automation/numeric_state.py:61:80: E501 line too long (80 > 79 characters)
The command "flake8 homeassistant" exited with 1.
2015-09-13 20:16:51 +02:00
Stefan Jonasson e9da02d70c Fixed value error exception
Fixed unittest
2015-09-13 19:59:26 +02:00
Paulus Schoutsen b0b88e606c Merge pull request #355 from SEJeff/minor-sonos-fix
Minor sonos fix
2015-09-13 10:17:05 -07:00
Jeff Schroeder 57a833f1a7 Fix a bug which causes the sonos component to occasionally pop
Had this happen when Sonos surround sound is playing from a TV. See this
for more details:

af9a5152fe/soco/core.py (L1060)
2015-09-13 12:13:35 -05:00
Paulus Schoutsen e5e577108c Merge pull request #357 from balloob/sonos-discovery
Discover sonos devices
2015-09-13 08:16:09 -07:00
Paulus Schoutsen 51dd718282 Fix broken thermostat demo and prevent happening again 2015-09-13 08:08:46 -07:00
Paulus Schoutsen 40340ea832 Discover sonos devices 2015-09-13 07:48:50 -07:00
Stefan Jonasson a2ca60159d Fixed logic 2015-09-13 13:05:36 +02:00
Stefan Jonasson 8e89308a15 Added better handling if we did not get a value for the numeric check 2015-09-13 12:15:21 +02:00
Paulus Schoutsen 96cfff192a Fix space after HA started in logbook 2015-09-13 01:21:30 -07:00
Paulus Schoutsen 067993c8ab Logbook reverse sorting 2015-09-13 01:12:05 -07:00
Paulus Schoutsen eef1e65244 Fix converting config device tracker 2015-09-13 00:48:52 -07:00
Paulus Schoutsen 134c870d2b Merge pull request #345 from balloob/device-tracker
Device tracker rewrite
2015-09-13 00:15:30 -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 81288cc988 Remove netgear discovery hack 2015-09-12 23:08:00 -07:00
Paulus Schoutsen cfc23b0091 Speed up tests 2015-09-12 22:56:49 -07:00
Paulus Schoutsen bb42e264cb Device tracker sets up group again 2015-09-12 22:56:31 -07:00
Per Sandström c9bccadc40 fixed merge error 2015-09-13 07:48:34 +02:00
Per Sandström ab6cb43d5b alarm component 2015-09-13 07:42:38 +02:00
Jeff Schroeder 4fa379419d Don't blow up if no sonos speakers are found
Also move the imports up so the latest pep8 doesn't complain
2015-09-12 23:10:24 -05:00
Roy Hooper 6dcb87c54d squash bug in volume_level (bad if statement) 2015-09-12 21:42:36 -04:00
Stefan Jonasson 4eba1250e9 Added a numeric_state automation platform 2015-09-12 21:42:52 +02:00
Jeff Schroeder d4d798d71f Error gracefully when unable to connect to home.nest.com 2015-09-12 14:27:12 -05:00
Jeff Schroeder 3dc1dc6c6a A few minor cleanups in the http debug api server 2015-09-12 14:27:07 -05:00
Jeff Schroeder 473047f3dd Fix a small tyop in the history component 2015-09-12 14:27:03 -05:00
Jeff Schroeder f5b5d3f65a Use str.split maxsplit in the time component 2015-09-12 14:26:59 -05:00
Jeff Schroeder 776c7dae07 Fix a tyop in the arduino switch component 2015-09-12 14:26:55 -05:00
Paulus Schoutsen 4ccedca3e5 Fix tests for device tracker 2015-09-12 09:15:28 -07:00
Paulus Schoutsen d9b97ad5b4 Merge pull request #348 from Zyell/dev
Initial Thermostat Range Support
2015-09-12 08:07:52 -07:00
zyell de89de890f Move state constants to __init__ for all thermostats 2015-09-12 07:27:05 -07:00
Paulus Schoutsen 5338b29edf Merge pull request #351 from maddox/itunes
Add iTunes media component
2015-09-11 21:53:03 -07:00
Jon Maddox 395dbe8804 drop the try 2015-09-12 00:50:40 -04:00
Jon Maddox f41786d893 STYLE!!!! 2015-09-12 00:49:34 -04:00
Jon Maddox 34dee0c134 style and docs 2015-09-12 00:42:11 -04:00
Jon Maddox 705238eb78 dat slash 2015-09-12 00:23:12 -04:00
Jon Maddox 2b6e0da405 add docstring 2015-09-12 00:23:04 -04:00
Jon Maddox 9d750368ff moar style fixes 2015-09-12 00:16:51 -04:00
Paulus Schoutsen 7252861b83 Merge pull request #350 from rhooper/sonos
rudimentary sonos support
2015-09-11 21:00:53 -07:00
Roy Hooper db2140782f follow proper calling convention for track_utc_time_change callback 2015-09-11 23:57:34 -04:00
Jon Maddox b9f5ec9e2c style fixes 2015-09-11 23:49:43 -04:00
Jon Maddox cb3f14a862 add iTunes component 2015-09-11 23:06:03 -04:00
Roy Hooper e9367d5369 use own track_utc_time_change to poll every 5 seconds 2015-09-11 22:44:37 -04:00
Roy Hooper c3dd94ba04 remove unnecessary self.update_ha_state calls 2015-09-11 22:43:55 -04:00
Paulus Schoutsen 6624cfefd6 Update kodi error reporting 2015-09-11 18:03:02 -07:00
Roy Hooper 350ed9f764 remove and disable pylint: disable=abstract-method for play_youtube() 2015-09-11 19:48:34 -04:00
Roy Hooper 3679a8078a put back play_youtube override 2015-09-11 19:44:18 -04:00
Roy Hooper a25f7eed2b Enable polling and fix metadata updating.
Remove unnecessary methods.
Include SoCo in requirements_all.txt for CI.
Lock down SoCo version to 0.11.1
Add sonos.py to exclusions in .coveragerc
2015-09-11 19:38:42 -04:00
Roy Hooper ae058b7847 tidy up formatting to make travis happy. 2015-09-11 18:55:23 -04:00
Roy Hooper aa74c4e57a fix initialization 2015-09-11 18:52:31 -04:00
Roy Hooper 1b874c603b rudimentary sonos support 2015-09-11 18:44:42 -04:00
Fabian Affolter e2b02f2fd2 Update error message 2015-09-11 08:07:16 +02:00
zyell 775d3198ae Fix logic coverage in target_temperature 2015-09-10 17:46:59 -07:00
zyell 21812ba717 Bug fixes and state adjustment for initial thermostat range support 2015-09-10 15:42:34 -07:00
zyell 2d54fdd979 Initial code for generic thermostat range support and nest compliance 2015-09-10 15:11:59 -07:00
Fabian Affolter 5d3e929599 Add timeout 2015-09-10 21:23:33 +02:00
Fabian Affolter 1ec392a494 Add update 2015-09-10 21:23:33 +02:00
Fabian Affolter d719dd72fe Add arest switch 2015-09-10 21:23:33 +02:00
Fabian Affolter 53b43dc4db Add timeout for requests 2015-09-10 21:21:14 +02:00
Fabian Affolter f21d97d5a2 Add timeout for requests 2015-09-10 21:21:14 +02:00
Paulus Schoutsen f9b17ab026 Device tracker rewrite 2015-09-09 23:37:15 -07:00
Paulus Schoutsen e88fabbe6d Set development version number 2015-09-09 19:38:28 -07:00
Paulus Schoutsen 0509b478e9 Bump version 0.7.2 2015-09-09 19:37:44 -07:00