Commit Graph

352 Commits (6011cee49072c35f59be98ce0f25560966500c24)

Author SHA1 Message Date
Paulus Schoutsen 19c474ba2f Remove TODO from nest platform 2015-01-11 21:38:03 -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 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 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
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 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
sfiorini b1a93ffc21 Added "Nest" thermostat component. 2015-01-05 19:11:02 -06: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 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 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 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 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 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 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 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 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 006310c883 Home Assistant stop is more robust 2014-11-28 20:22:08 -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 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 01f738c151 Move to Pypi version of Phue again 2014-11-22 15:49:54 -08:00
Paulus Schoutsen 66f8daded1 Minor cleanup 2014-11-19 23:42:57 -08:00
Paulus Schoutsen cc4c557e89 Cleanup of state-badge.html 2014-11-19 23:13:48 -08:00
Paulus Schoutsen 9656ff6636 show HA toolbar when showing popups for easy going back 2014-11-19 23:02:09 -08:00
Paulus Schoutsen 88c4c77cbd New compiled version frontend 2014-11-19 19:20:30 -08:00
Paulus Schoutsen 651d2dfd86 Improved layout of popups on small screens 2014-11-19 19:20:06 -08:00
Paulus Schoutsen 67bb64ab6b Cleaned up states-cards.html 2014-11-19 19:01:46 -08:00
Paulus Schoutsen 04e58bd375 tab bar autohides on scroll down 2014-11-19 19:01:26 -08:00
Paulus Schoutsen a4dab870ce Reworked Splash Login. Hides virtual keyboard, squashed bugs. 2014-11-19 18:15:37 -08:00
Gustav Ahlberg aab52ca686 Schedule component
Can read schedule json config file
Can load custom rule_types
2014-11-17 21:18:01 +01:00
Paulus Schoutsen 5d107ed74b Switched style checking to flake8 instead of pep8 2014-11-16 22:18:52 -08:00
Paulus Schoutsen 20ff5fadee Added doctype HTML to stop Safari converting selectors in embedded CSS to lower case 2014-11-14 00:26:20 -08:00
Paulus Schoutsen fa75458b30 frontend compile script now strips comments 2014-11-13 22:47:06 -08:00
Paulus Schoutsen cea18ee561 Minor frontend bugfixes 2014-11-13 22:25:43 -08:00
Paulus Schoutsen 2478656622 Upgraded to Polymer 0.5.1 2014-11-13 08:13:29 -08:00
Paulus Schoutsen 23d080af86 Upgraded to Polymer 0.5 2014-11-12 00:36:20 -08:00
Paulus Schoutsen da960b29da Added meta-tag theme-color for better app experience on Chrome Mobile 2014-11-11 22:04:26 -08:00
Paulus Schoutsen 9f9b926011 All platforms supported by components have their own file - you can can have custom platforms 2014-11-11 21:39:17 -08:00
Gustav Ahlberg 8c6e6e464e pylint and PEP8 errors 2014-11-11 18:59:38 -08:00
Gustav Ahlberg f4e54719b9 Added support for tellstick devices and sensors 2014-11-11 18:59:38 -08:00
Paulus Schoutsen c856c117a8 PEP8 style fix 2014-11-11 09:30:11 -08:00
Paulus Schoutsen 47dea785a8 Refactored light to be more reusable 2014-11-09 15:19:13 -08:00
Paulus Schoutsen ca336bef57 Fixed a bug that prevented the service dialog from sending JSON 2014-11-09 14:45:43 -08:00
Paulus Schoutsen a4bac63161 Cleanup of process component 2014-11-09 02:58:41 -08:00
Paulus Schoutsen 2ec1f20a03 Added support for unit_of_measurement 2014-11-08 17:45:09 -08:00
Paulus Schoutsen 5770cc03a1 Migrated wemo component to be part of a switch component 2014-11-08 17:20:43 -08:00
Paulus Schoutsen 222d57bda7 track_state_change now accepts a list of entity_ids 2014-11-08 14:22:17 -08:00
Paulus Schoutsen 1e136a2416 Logging is more efficient 2014-11-08 13:59:40 -08:00
Paulus Schoutsen a9ee2f9c54 Refactor: loading of components now done in a seperate module + better error reporting 2014-11-04 23:34:19 -08:00
Paulus Schoutsen 3c37f491b2 Update compiled frontend with latest changes 2014-11-04 20:24:48 -08:00
Paulus Schoutsen ac2389a0a5 Responsive design now supports up to 4 columns 2014-11-04 20:23:46 -08:00
Paulus Schoutsen 714f747b61 Bugfix: Sun and light state icon default colors if on work again 2014-11-04 20:15:20 -08:00
Paulus Schoutsen c489c68f02 state-badge no longer sets url(undefined) as background-image 2014-11-02 18:50:16 -08:00
Paulus Schoutsen bb23f57f96 Renamed build_polymer to build_frontend 2014-11-02 17:57:48 -08:00
Paulus Schoutsen 98c2f1ea42 Fix broken tests after API upgrade 2014-11-02 17:52:51 -08:00
Paulus Schoutsen d56edd46bb Phue: Switched to GIT-version because pip version lacks behind 2014-11-02 16:22:59 -08:00
Paulus Schoutsen 542e6b9536 Timestamp tooltip is working again 2014-11-02 14:45:13 -08:00
Paulus Schoutsen 4f0b828a15 Responsive layout now grows up to 3 columns 2014-11-02 11:58:32 -08:00
Paulus Schoutsen 1bab576be7 Added support for entity pictures 2014-11-02 11:22:22 -08:00
Paulus Schoutsen f9462613f5 Refactor Javascript backend 2014-11-02 10:45:49 -08:00
Paulus Schoutsen ac8d70d547 Added a demo mode 2014-11-02 09:41:41 -08:00
Paulus Schoutsen a4dd58cf5e Responsive happiness 2014-11-02 00:06:04 -07:00
Paulus Schoutsen a0ab73882c No longer show groups on ALL tab 2014-11-01 22:10:32 -07:00
Paulus Schoutsen 48c3c44aba Updating compiled frontend to latest version 2014-11-01 15:37:24 -07:00
Paulus Schoutsen 523cd8249f Use friendly_name for entityDisplay if available 2014-11-01 15:29:39 -07:00
Paulus Schoutsen b686f04121 Major cleanup frontend 2014-11-01 15:04:44 -07:00
Paulus Schoutsen 990ac057db Reduced font size of state card 2014-11-01 08:20:06 -07:00
Paulus Schoutsen d1f3c84212 State card for light will show actual color of light 2014-11-01 08:16:34 -07:00
Paulus Schoutsen 86dc0a973c Sun will now also color yellow when above horizon 2014-10-31 00:23:06 -07:00