Commit Graph

542 Commits (015e7f8acf844a7482b7843edf47a82f13e0cecf)

Author SHA1 Message Date
Geoff Norton ce9de1b7d2 Add initial support for wink sensors.
Refactor wink API fetching into a generic 'get_devices' function.
2015-01-20 01:14:47 +00:00
Paulus Schoutsen 869c4eb68d Update pynetgear to latest version 2015-01-19 08:43:29 -08:00
Paulus Schoutsen dd38621352 Frontend: show message if no states 2015-01-17 23:29:46 -08:00
Paulus Schoutsen 5f0f06b22d Add command-line toggle to run in demo mode 2015-01-17 22:23:07 -08:00
Paulus Schoutsen ed05ff6fd9 Allow for running Home Assistant without password 2015-01-17 21:55:33 -08:00
Paulus Schoutsen 50eecd11c1 Added command line toggle to open UI on start 2015-01-17 21:13:02 -08:00
Paulus Schoutsen 45e295c1d3 Update pynetgear to latest version 2015-01-17 13:49:22 -08:00
Paulus Schoutsen 8562b8f09d Update to latest version netdisco 2015-01-16 08:52:19 -08:00
Paulus Schoutsen 9ffe35756b Component Automation - initial version 2015-01-15 23:32:27 -08:00
Paulus Schoutsen 93f93aff93 Merge branch 'dev'
* dev:
  Exclude external libraries from code coverage
  Bug fixes for Wink
  Better positioning of dialogs
  Added error handling in frontend debug forms
  Integrate add worker to bootstrap.setup_component
  Conditionally show widgets on light more info
  Rename the edit state button in more info to debug
  Expect devices to have no name
2015-01-15 21:39:43 -08:00
Paulus Schoutsen 702498ca09 Bug fixes for Wink 2015-01-15 21:25:24 -08:00
Paulus Schoutsen c116cb095d Better positioning of dialogs 2015-01-14 23:57:23 -08:00
Paulus Schoutsen ced3d595cc Added error handling in frontend debug forms 2015-01-14 23:56:53 -08:00
Paulus Schoutsen 8c62ae4ce5 Integrate add worker to bootstrap.setup_component 2015-01-14 23:18:44 -08:00
Paulus Schoutsen 3e4c0261b1 Conditionally show widgets on light more info 2015-01-14 23:10:56 -08:00
Paulus Schoutsen fd6ff4c8d3 Rename the edit state button in more info to debug 2015-01-14 22:15:27 -08:00
Paulus Schoutsen 7f7c403e00 Expect devices to have no name 2015-01-14 21:12:11 -08:00
Paulus Schoutsen aa9673b208 Device Tracker sets up group auto attribute proper 2015-01-13 08:25:17 -08:00
Paulus Schoutsen 2fa4e2e468 Remove unused import from nest platform 2015-01-13 00:00:26 -08:00
Paulus Schoutsen d1ad6f3e65 Show state attributes in default more info dialog 2015-01-12 23:57:57 -08:00
Paulus Schoutsen b9a08bb25d Migrate nest platform to python-nest 2015-01-12 23:31:31 -08:00
Paulus Schoutsen 646f22bfbb Rename service_discovered to platform_discovered 2015-01-12 08:21:50 -08:00
Paulus Schoutsen 86e4fb9655 Merge branch 'component-wink' into dev
* component-wink:
  Wink component bug fixes
  Bugfixes to make Wink component work
  Added wink component to auto-load other needed components
  Initial version wink component by @loghound
  changed bearer_token to access_token in conf file
  Wink Hub integration of it's switches & lights

Conflicts:
	homeassistant/components/switch/__init__.py
	homeassistant/const.py
2015-01-11 23:22:40 -08:00
Paulus Schoutsen 19c474ba2f Remove TODO from nest platform 2015-01-11 21:38:03 -08:00
Paulus Schoutsen 8665f08dca Update netdisco to latest version 2015-01-11 21:23:22 -08:00
Paulus Schoutsen aea6042fe1 Getting thermostat component ready for release 2015-01-11 21:21:18 -08:00
Paulus Schoutsen 0f8e282386 Wink component bug fixes 2015-01-11 14:23:24 -08:00
Paulus Schoutsen 9db1f3f8b7 Bugfixes to make Wink component work 2015-01-11 14:21:44 -08:00
Paulus Schoutsen cac1f56b2d Merge branch 'dev' into component-thermostat
* dev:
  Use tuples instead of lists internally
  Use properties instead of getters for Device class
  Upgrade pushbullet.py to 0.7.1
  Prevent devices from being discovered twice
  Update netdisco to latest version
  Update netdisco to latest version
  Updated requirements.txt for the discovery component
  Automatic discovery and setting up of devices
  Ensure groups always have unique entity id
  Rename ha_test folder to tests
  Make group component more flexible
  Reorganized the main to be more modular
  Updated PyWemo to latest version
  Fix warnings from flake8 and pylint
  Check flags in ARP table for NUD_REACHABLE before assuming a device is online. Fixes #18.
  Pull in PyWemo bugfixes
2015-01-11 10:00:25 -08:00
Paulus Schoutsen ca49a2aa68 Use tuples instead of lists internally 2015-01-11 09:55:45 -08:00
Paulus Schoutsen 283b187501 Use properties instead of getters for Device class 2015-01-11 09:20:41 -08:00
Paulus Schoutsen 035e3e686e Upgrade pushbullet.py to 0.7.1 2015-01-11 08:09:25 -08:00
Paulus Schoutsen 6cd53f2ddf Added wink component to auto-load other needed components 2015-01-10 23:47:23 -08:00
Paulus Schoutsen 249cf244ca Initial version wink component by @loghound 2015-01-10 22:53:41 -08:00
John McLaughlin cd896627ea changed bearer_token to access_token in conf file 2015-01-10 22:35:14 -08:00
John McLaughlin dccd9f562f Wink Hub integration of it's switches & lights 2015-01-10 22:35:01 -08:00
Paulus Schoutsen c2b8f8d34e Prevent devices from being discovered twice 2015-01-10 10:34:56 -08:00
Paulus Schoutsen 9db1a58cb1 Update netdisco to latest version 2015-01-10 08:53:46 -08:00
Paulus Schoutsen ebc67f460e Update netdisco to latest version 2015-01-09 22:22:19 -08:00
Paulus Schoutsen ba179bc638 Automatic discovery and setting up of devices 2015-01-09 00:07:58 -08:00
Paulus Schoutsen 035d994705 Merge branch 'master' into dev
* master:
  Fix warnings from flake8 and pylint
  Check flags in ARP table for NUD_REACHABLE before assuming a device is online. Fixes #18.
2015-01-08 20:18:04 -08:00
Paulus Schoutsen f1209a42a9 Ensure groups always have unique entity id 2015-01-08 20:17:05 -08:00
Paulus Schoutsen e0b424c88f Make group component more flexible 2015-01-08 20:02:34 -08:00
Paulus Schoutsen f5683797aa Reorganized the main to be more modular 2015-01-08 18:45:27 -08:00
Paulus Schoutsen efe820628c Updated PyWemo to latest version 2015-01-06 20:52:26 -08:00
Karsten Nerdinger 2c5886f6d4 Fix warnings from flake8 and pylint 2015-01-07 03:57:06 +01:00
Karsten Nerdinger fc33273464 Check flags in ARP table for NUD_REACHABLE before assuming a device is online. Fixes #18. 2015-01-07 03:36:39 +01:00
Paulus Schoutsen cbbda2db55 Pull in PyWemo bugfixes 2015-01-06 07:49:49 -08:00
Paulus Schoutsen 6943a3bc14 Add a Nest specific card to frontend 2015-01-06 00:11:03 -08:00
Paulus Schoutsen 8f3a3f89a7 Refactor nest component into thermostat component 2015-01-06 00:10:33 -08:00
Paulus Schoutsen 68b712adfd Merge branch 'dev' into component-thermostat
* dev:
  Extracted a base HA device from ToggleDevice
2015-01-05 23:07:17 -08:00
Paulus Schoutsen 24be24c58b Extracted a base HA device from ToggleDevice 2015-01-05 23:02:41 -08:00
Paulus Schoutsen db7004fdee Merge remote-tracking branch 'stefano/dev' into component-thermostat
* stefano/dev:
  Added "Nest" thermostat component.
2015-01-05 21:44:22 -08:00
Paulus Schoutsen b10b75b7fe Reorganized frontend files 2015-01-05 21:41:15 -08:00
Paulus Schoutsen ed3bbd98cc Remove unsupported specifying hosts for wemo 2015-01-05 21:35:22 -08:00
Paulus Schoutsen b90826c267 Better handling of subsequent throttle calls 2015-01-05 20:50:34 -08:00
Paulus Schoutsen 1b0143341c Update pywemo to latest version 2015-01-05 20:23:48 -08:00
sfiorini b1a93ffc21 Added "Nest" thermostat component. 2015-01-05 19:11:02 -06:00
Paulus Schoutsen b63784a4e6 Updated pywemo to latest version 2015-01-05 00:43:37 -08:00
Paulus Schoutsen 3894dec274 Default notify message title is now Home Assistant 2015-01-04 14:20:16 -08:00
Paulus Schoutsen 490543093d Simple_alarm component notifies user on alarm 2015-01-04 01:24:25 -08:00
Paulus Schoutsen 4fec2dcb28 Add notification component and PushBullet platform 2015-01-04 01:14:18 -08:00
Paulus Schoutsen a6ec071244 ps: dialogs on small screens only take needed height 2015-01-03 09:52:47 -08:00
Paulus Schoutsen f64e84d087 State.last_changed only changes if state changes
No longer affected if just the attributes get updated.
2015-01-02 08:48:20 -08:00
Paulus Schoutsen 1ebaf7fd36 Tweaked the default 'more info' component text 2015-01-02 08:47:11 -08:00
Paulus Schoutsen 67d62a1723 New compiled version of frontend 2015-01-01 22:06:55 -08:00
Paulus Schoutsen edb01b6bb4 Moved dialog logic to base class. 2015-01-01 22:06:39 -08:00
Paulus Schoutsen 5e9303dbf2 Create cards and more-info elements dynamically 2015-01-01 22:02:28 -08:00
Paulus Schoutsen a0a1573dc9 More info for sun domain added 2015-01-01 21:02:30 -08:00
Paulus Schoutsen debca88a0d All custom groups in 1 section instead of each their own 2015-01-01 20:03:24 -08:00
Paulus Schoutsen dec12be52e Add more-info card for group domain 2015-01-01 19:42:20 -08:00
Paulus Schoutsen 85f5df55e9 frontend more-info-light: tweaks & cleanup 2014-12-30 18:37:33 -08:00
Paulus Schoutsen fee51d604d demo comp: preserve color when turning on light that's on 2014-12-30 18:36:55 -08:00
Paulus Schoutsen d506d0f424 Demo component now supports brightness/color for lights 2014-12-30 08:41:42 -08:00
Paulus Schoutsen 4dcaf12fa7 Added option to select light colors 2014-12-29 23:54:55 -08:00
Paulus Schoutsen cfeb1f1538 Now able to change brightness of lights from more info dialog 2014-12-29 23:40:27 -08:00
Paulus Schoutsen 973525da6d Do not pollute template refs with ambigious names 2014-12-29 22:49:11 -08:00
Paulus Schoutsen d5737aafce Frontend: Clicking a card opens more info screen 2014-12-29 22:47:29 -08:00
Gustav Ahlberg b0b62d5db0 Fixed some lint errors 2014-12-29 01:18:02 +01:00
Gustav Ahlberg 03e30ea5ed SunEventListener documentation 2014-12-28 14:56:50 +01:00
Gustav Ahlberg 99b1cbf9b5 Merge remote-tracking branch 'upstream/master' into scheduler
* upstream/master: (60 commits)
  StateMachine is now case insensitive for entity ids
  Added an example component that does the bare minimum
  State card rendering now way more flexible
  Update README.md
  Update documentation for example component
  Add link to demo in README
  Add code to mock API for demo on home-assistant.io
  Moved documentation from GitHub source to home-assistant.io
  Make nmap mac regex more flexible to play nice with OS X
  Frontend: color switch icons yellow if on
  New strategy for defining number of used threads
  WeMo component exposes Insight info if available
  Only turn off the specified lights
  Fix default light and device group IDs
  Add nmap_tracker documentation
  Fix typo and default groups
  Specify devices for trigger
  nmap-based device tracking plugin
  Make block_till_stopped test more flexible
  Fix PyLint
  ...
2014-12-28 14:49:28 +01:00
Gustav Ahlberg b1cc760bd1 TimeEventListener uses ServiceEventListener 2014-12-28 11:38:57 +01:00
Gustav Ahlberg 83320681f0 SunriseEventListener and SunsetEventListner 2014-12-28 11:37:37 +01:00
Gustav Ahlberg c436b33da9 added seconds to timeEventListener 2014-12-28 11:29:26 +01:00
Paulus Schoutsen 89a548252a StateMachine is now case insensitive for entity ids 2014-12-26 23:26:39 -08:00
Paulus Schoutsen 029c38874b State card rendering now way more flexible
Decoupled state card into reusable components. Now able to have
different states be rendered with different state card components.
2014-12-23 21:12:42 -08:00
Paulus Schoutsen 249d4d7062 Add code to mock API for demo on home-assistant.io 2014-12-21 15:07:01 -08:00
Paulus Schoutsen 47e6290609 Make nmap mac regex more flexible to play nice with OS X 2014-12-19 15:42:34 -08:00
Paulus Schoutsen 47adae7917 Frontend: color switch icons yellow if on 2014-12-16 22:04:01 -08:00
Paulus Schoutsen 970014588a New strategy for defining number of used threads
Number of worker threads is 2 + 1 for each component that polls devices.
2014-12-16 21:46:02 -08:00
Paulus Schoutsen 528cd8ee48 WeMo component exposes Insight info if available 2014-12-15 19:14:31 -08:00
Paulus Schoutsen 7a9898fbd2 Merge remote-tracking branch 'origin/master' into dev 2014-12-15 18:57:53 -08:00
Paulus Schoutsen c18bb7dcad Merge pull request #15 from trainman419/multi_room
Add support to device_sun_light_trigger to target specific device groups.
2014-12-15 18:57:12 -08:00
trainman419 1c1d075c12 Only turn off the specified lights 2014-12-15 11:29:48 -08:00
trainman419 69a616a0ba Fix default light and device group IDs 2014-12-15 11:29:22 -08:00
trainman419 18396d2ee5 Fix typo and default groups 2014-12-15 00:49:56 -08:00
trainman419 cec5ca8ba2 Specify devices for trigger 2014-12-15 00:14:10 -08:00
trainman419 4495812b84 nmap-based device tracking plugin 2014-12-14 23:28:12 -08:00
Paulus Schoutsen bea7634b47 Fix PyLint 2014-12-14 19:59:37 -08:00
Paulus Schoutsen 344ce6ee4d Define number of worker threads based on cpu count 2014-12-14 18:28:11 -08:00
Paulus Schoutsen 4e4e6b1133 Upgrade to Polymer 0.5.2 2014-12-14 00:45:29 -08:00
Paulus Schoutsen 5e8673fc4a API Call Service returns states changed 2014-12-14 00:35:16 -08:00
Paulus Schoutsen b091e9c31c Added TrackStates context manager 2014-12-14 00:32:20 -08:00
Paulus Schoutsen 78d5625ace Calling a service can now block till execution is done 2014-12-13 22:40:00 -08:00
Paulus Schoutsen f8223053bd Style fixes in home-assistant-api.html 2014-12-13 22:29:05 -08:00
Paulus Schoutsen e2b434b24e Log file now also contains warnings 2014-12-12 08:15:34 -08:00
Paulus Schoutsen 7c404a0551 device_tracker - No longer keep writing same new devices to known_devices.csv 2014-12-12 07:32:50 -08:00
Paulus Schoutsen 81be3811dc Only save the valid entities in the group entity_ids attribute 2014-12-12 07:21:25 -08:00
Paulus Schoutsen df3521e706 Group component is more flexible when to setup a group 2014-12-11 17:31:01 -08:00
Paulus Schoutsen ea1e4108cc Auth header for API is now prefixed with X- to follow spec 2014-12-09 00:34:36 -08:00
Paulus Schoutsen 756425f7b4 Added frontend icon for simple_alarm 2014-12-09 00:29:07 -08:00
Paulus Schoutsen 00e1ecb5ad Fix: simple_alarm will now report if proper initialized 2014-12-09 00:14:12 -08:00
Paulus Schoutsen 4e1b094449 Simple_alarm will only show known_alarm if that light is already on 2014-12-09 00:06:55 -08:00
Paulus Schoutsen dd55d6c7f9 Added a simple_alarm component 2014-12-08 23:47:20 -08:00
Paulus Schoutsen 6044742cee Fix: Hue lights will not flash anymore on next turn on call after having flashed 2014-12-08 23:41:52 -08:00
Paulus Schoutsen 99447eaa17 Light component now supports sending flash command 2014-12-08 23:02:38 -08:00
Paulus Schoutsen e7dff308ef Updated example component with more examples 2014-12-08 22:06:57 -08:00
Paulus Schoutsen 1f582cbeec Fix: Read known devices file once on init device_tracker 2014-12-08 22:06:38 -08:00
Paulus Schoutsen 68aa78d1fe Fix some style warnings by PyCharm 2014-12-07 01:28:52 -08:00
Paulus Schoutsen 0527760e9b Refactor: code moved to new helper and constants file. Also adds support for multiple types for switch/light components. 2014-12-06 23:57:02 -08:00
Paulus Schoutsen 48089b01ab Renamed AddCooldown to Throttle and added bypass functionality 2014-12-04 21:06:45 -08:00
Paulus Schoutsen 31b9f65513 Added initial version of AddCooldown decorator 2014-12-04 01:14:27 -08:00
Gustav Ahlberg c92089808f completed time_event_listener 2014-12-03 20:38:48 +01:00
Paulus Schoutsen eef4817804 Cleaned up device_tracker and added tests 2014-12-02 23:54:10 -08:00
Paulus Schoutsen ed150b8ea5 Renamed test to ha_test because of conflict with built-in python test package 2014-11-30 23:15:18 -08:00
Paulus Schoutsen 5835d502c7 Moved more methods out of HomeAssistant object 2014-11-30 18:42:52 -08:00
Paulus Schoutsen c08676aa81 Reorganized some core methods 2014-11-28 23:38:42 -08:00
Paulus Schoutsen 6f05548ec8 Add test coverage for demo component 2014-11-28 22:49:29 -08:00
Paulus Schoutsen a4eb975b59 HTTP more robust and increased test coverage 2014-11-28 22:27:44 -08:00
Paulus Schoutsen cdccdb432a Test remote methods for errors 2014-11-28 21:01:44 -08:00
Paulus Schoutsen 63f8f2ee7f Remote instance closes event forwarding on shutdown 2014-11-28 20:37:23 -08:00
Paulus Schoutsen cfae4c667a Minor improvements to homeassistant.remote tests 2014-11-28 20:22:29 -08:00
Paulus Schoutsen 006310c883 Home Assistant stop is more robust 2014-11-28 20:22:08 -08:00
Paulus Schoutsen 89102b5652 Increase homeassistant.util test coverage 2014-11-28 19:42:16 -08:00
Paulus Schoutsen 5fe73cf33e Made dependency loading more robust 2014-11-28 15:36:21 -08:00
Gustav Ahlberg 09908f5780 Merge branch 'dev' of https://github.com/balloob/home-assistant into scheduler
# By Paulus Schoutsen
# Via Paulus Schoutsen
* 'dev' of https://github.com/balloob/home-assistant: (51 commits)
  Light test tests light profile loading
  Loader test tests now custom component loading
  Default config dir is now working_dir/config
  Add sun component test for state change
  Tweak light test to create correct exception
  Better light.xy_color parsing
  Added light component test coverage
  Renamed mock_switch_platform to mock_toggledevice_platform
  Expanded switch test to push it to 100% coverage
  Fix to make tests work on Travis CI
  Added tests for switch component
  Clean up code sun component tests
  Added test coverage for sun component
  Minor fix for Chromecast component
  Cleaned up tests a bit
  Added initial Chromecast test coverage
  Final test added to get to 100% coverage for groups
  Extended group tests
  Added group component tests
  Reorganized testing
  ...
2014-11-26 20:44:37 +01:00
Gustav Ahlberg 1c94bb1c0f Schedule component and time event
The schedule can read a schedule.json file and create time events
2014-11-26 20:38:40 +01:00
Paulus Schoutsen ce1a5de607 Light test tests light profile loading 2014-11-25 23:16:07 -08:00
Paulus Schoutsen 9c4111403e Default config dir is now working_dir/config 2014-11-25 23:15:18 -08:00
Paulus Schoutsen cda04b7ece Add sun component test for state change 2014-11-25 22:31:36 -08:00
Paulus Schoutsen 2220df5a3e Better light.xy_color parsing 2014-11-25 21:38:47 -08:00
Paulus Schoutsen 5f9787aeb2 Added light component test coverage 2014-11-25 21:28:43 -08:00
Paulus Schoutsen 5cbe7bf1b8 Added tests for switch component 2014-11-25 00:20:36 -08:00
Paulus Schoutsen 4e155d50f3 Added test coverage for sun component 2014-11-24 23:19:33 -08:00
Paulus Schoutsen 470125b69a Minor fix for Chromecast component 2014-11-23 22:21:47 -08:00
Paulus Schoutsen 244e2a0e7e Added initial Chromecast test coverage 2014-11-23 22:18:40 -08:00
Paulus Schoutsen bc4b81d525 Reorganized testing 2014-11-23 13:00:06 -08:00
Paulus Schoutsen ad16c32504 Reorganized tests 2014-11-23 09:51:16 -08:00
Paulus Schoutsen 5278fe2f47 Added test coverage for core components 2014-11-23 00:32:03 -08:00
Paulus Schoutsen ec59c3c793 Added test to validate frontend loads 2014-11-23 00:01:15 -08:00