Adam Mills
40d27cde0e
Refactor sun component for correctness ( #7295 )
...
* Refactor sun component for correctness
* Convert datetimes to dates for astral
* Fix tests for updated code
* Fix times now that calcs are fixed
* Move sun functions to helpers
* Fix flake on new file
* Additional tweaks from review
* Update requirements
2017-05-09 00:03:34 -07:00
Fabian Affolter
4d52b0ecd5
Update docstrings ( #7405 )
...
* Update docstrings
* Fix lint issues
* Update docstrings
2017-05-02 22:47:20 +02:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -07:00
Paulus Schoutsen
c550a316a4
Make device sun light trigger async ( #5823 )
2017-02-09 00:10:53 -08:00
Paulus Schoutsen
62785c2431
More async tests ( #4223 )
...
* Annotate test callbacks to be async
* Convert device_sun_light_trigger to be async
2016-11-05 16:36:20 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
5bf66cae1f
Use voluptuous for Device Sun Light Trigger ( #3105 )
...
* Migrate to voluptuous
* Use default
2016-09-09 09:06:24 +02:00
Fabian Affolter
b534244e40
Fix PEEP257 issues
2016-03-08 17:55:57 +01:00
Fabian Affolter
b8a40457ee
Update docstrings to match PEP257
2016-03-07 18:50:30 +01:00
Paulus Schoutsen
cd30f2de0d
Device Sun Light Trigger: Clean up
2016-03-05 20:15:33 -08:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Paulus Schoutsen
e47ac96587
Remove more deprecated method calls
2015-08-04 18:13:35 +02:00
Paulus Schoutsen
382c1de981
Built-in components no longer use deprecated methods
2015-08-03 17:08:13 +02:00
Paulus Schoutsen
ae0cf49560
UTC upgrades for scheduler, nmap tracker, dsl_trigger
2015-05-14 21:07:15 -07:00
trainman419
730faed757
Turn off correct lights
...
Only turn off the lights specified in the sun light trigger.
I use this to turn off my bedroom lights when I leave, even if my
housemates are still home.
2015-03-15 15:50:32 -07:00
Paulus Schoutsen
8e29910e77
Style fixes to satisfy updated Flake8
2015-02-15 17:15:46 -08:00
Paulus Schoutsen
ff230cefe3
Disable pylint unused-argument check
2015-01-19 23:40:51 -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
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
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
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
8db1b74a3c
device_sun_light_trigger: added option to disable turning devices off when all people gone
2014-09-27 07:18:55 -07:00
Paulus Schoutsen
997c2e8ef6
Components+configuration now loaded dynamically
...
A major change to the bootstrapping of Home Assistant decoupling the
knowledge in bootstrap for a more dynamic approach. This refactoring
also prepares the code for different configuration backends and the
loading components from different places.
2014-08-13 14:28:45 +02:00
Paulus Schoutsen
2e10d7223a
Re-organized core for better reusability
2014-04-24 00:40:45 -07:00
Paulus Schoutsen
ef6d862671
Further Python 3 migration
2014-04-14 23:48:00 -07:00
Paulus Schoutsen
7e06d535ab
Ported codebase to Python 3. Long Live Python 3!
2014-04-14 00:10:31 -07:00
Paulus Schoutsen
8fdf2d608a
Cleanup of core services
2014-04-13 12:59:45 -07:00
Paulus Schoutsen
90769fc0eb
Lights now support profiles
2014-03-26 00:20:02 -07:00
Paulus Schoutsen
bb771d802d
Light color/brightness now exposed and controllable
2014-03-16 15:00:59 -07:00
Paulus Schoutsen
c735e32361
Split out track_point_in_time from track_time_change
2014-02-14 11:34:09 -08:00
Paulus Schoutsen
1d2d7bb7a0
Device Sun Light Trigger component is more robust now
2014-02-02 21:33:16 -08:00
Paulus Schoutsen
c438f35bcd
Methods defined inside setup make more sense
2014-01-29 22:47:50 -08:00
Paulus Schoutsen
77c56b704b
Device_sun_light_trigger: bug fix for wrong turn_off call
2014-01-23 23:52:38 -08:00
Paulus Schoutsen
097a51abc6
Refactored component 'general' into components.__init__
2014-01-23 23:26:00 -08:00
Paulus Schoutsen
0fc3d359cb
Moved stuff away from core. Made component interface more uniform.
2014-01-23 22:03:13 -08:00
Paulus Schoutsen
6ce393856a
light.turn_on/turn_off/is_on use entity_id instead of object_id
2014-01-20 23:23:02 -08:00
Paulus Schoutsen
e9e1b007ed
RENAME: StateMachine tracks now entities, not categories.
2014-01-19 23:37:40 -08:00
Paulus Schoutsen
3c3e7e5825
Events and States are no longer dicts but objects.
2014-01-19 19:10:40 -08:00
Paulus Schoutsen
478d4ad93a
Light trigger now looks if the target light group is on to turn on lights instead of all lights.
2014-01-12 11:29:30 -08:00
Paulus Schoutsen
ac912b2d2d
Bugfix: all lights would turn on instead of specified group if person came home.
2014-01-04 18:16:16 -08:00
Paulus Schoutsen
48026c28c1
Added state groups and migrated code base to use them.
2014-01-04 17:55:05 -08:00
Paulus Schoutsen
9518a2a0b7
Bugfix in shutdown_devices call
2013-12-11 20:29:11 -08:00
Paulus Schoutsen
dd271febae
Reorg: Merged observers, actors and HTTPInterface into components
2013-12-11 00:07:30 -08:00