Bas Nijholt
|
8cd6a255cd
|
add transition=self._initial_transition
|
2020-09-11 21:02:32 +02:00 |
|
Bas Nijholt
|
79944c9468
|
use astral location from HA
|
2020-09-11 20:58:43 +02:00 |
|
Bas Nijholt
|
4aff61d8cb
|
move to single switch
|
2020-09-11 20:31:51 +02:00 |
|
Bas Nijholt
|
b16d69b1c9
|
switch doesn't need to have the profile as attribute
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
6a0f12ab2d
|
setup a sensor per profile
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
c18cb47cbf
|
fix doc-string
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
24f422ccf6
|
make switch use profile
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
18561e5ce6
|
fix import
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
7e41621e41
|
setup sensor for default profile
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
cd31b5d9f1
|
profiles -> profile
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
ad57fb0989
|
add option to add multiple profiles
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
7cbe6a4258
|
another attempt
|
2020-09-11 19:51:01 +02:00 |
|
Bas Nijholt
|
ae64db7077
|
initial implementation of profiles
|
2020-09-11 19:51:00 +02:00 |
|
Bas Nijholt
|
7c29e3281a
|
start implementing profile settings, as suggested in https://github.com/claytonjn/hass-circadian_lighting/issues/91#issuecomment-647084406
|
2020-09-11 19:51:00 +02:00 |
|
Clayton Nummer
|
5999e2b72b
|
Merge pull request #116 from basnijholt/fix-percentage
Fix percentage, closes #115
|
2020-09-09 21:30:43 -04:00 |
|
Bas Nijholt
|
3bf3c5f541
|
fix the today['sunset'] is not set before used in comparison
|
2020-09-09 23:26:30 +02:00 |
|
Clayton Nummer
|
2b3588f2ce
|
Merge pull request #113 from basnijholt/remove-timezone
Remove timezone dependency
|
2020-09-06 08:03:56 -04:00 |
|
Bas Nijholt
|
55673b7e61
|
remove timezonefinder dependency
|
2020-09-06 09:59:20 +02:00 |
|
Clayton Nummer
|
7fd9ae2c72
|
Merge pull request #112 from basnijholt/patch-1
Fix case when from_state is None, closes #111
|
2020-09-06 00:07:25 -04:00 |
|
Bas Nijholt
|
7744c2e939
|
decapitalize "Both" -> "both"
|
2020-09-05 20:17:14 +02:00 |
|
Bas Nijholt
|
3b868858b0
|
make async_turn_off actually async
|
2020-09-05 20:16:15 +02:00 |
|
Bas Nijholt
|
b381c5a96d
|
make is_sleep a private method
|
2020-09-05 20:14:51 +02:00 |
|
Bas Nijholt
|
46a74cb5a5
|
prepend async_ to turn_on and turn_off
|
2020-09-05 20:09:56 +02:00 |
|
Bas Nijholt
|
618234259d
|
transition should always exist
|
2020-09-05 17:39:19 +02:00 |
|
Bas Nijholt
|
37ac31c3c6
|
to_state will always be on
|
2020-09-05 15:08:26 +02:00 |
|
Bas Nijholt
|
a464189ce0
|
Fix case when from_state is None, closes #111
Made this commit on my phone and didn't test it yet.
|
2020-09-05 15:02:52 +02:00 |
|
Clayton Nummer
|
d0e195f04b
|
Merge pull request #110 from basnijholt/dev
add one more _LOGGER line
|
2020-09-04 12:44:31 -04:00 |
|
Bas Nijholt
|
9074b9fe71
|
add one more _LOGGER line
|
2020-09-04 18:34:20 +02:00 |
|
Clayton Nummer
|
7289957ce8
|
Merge pull request #107 from basnijholt/styling
Rewrite and simplify code
|
2020-09-04 10:51:06 -04:00 |
|
Bas Nijholt
|
0264aeaa09
|
add a more useful debug message for state changing
|
2020-09-04 16:18:45 +02:00 |
|
Bas Nijholt
|
dee9dd10f8
|
run black
|
2020-09-03 23:56:48 +02:00 |
|
Bas Nijholt
|
ed9389a1e7
|
make the switch async to ensure all light adjusting happens at the same time
|
2020-09-02 09:38:21 +02:00 |
|
Bas Nijholt
|
becc846287
|
component -> platform
|
2020-09-01 20:02:23 +02:00 |
|
Bas Nijholt
|
368bc9fddc
|
shorten self._lights_types construction
|
2020-09-01 20:02:13 +02:00 |
|
Bas Nijholt
|
92d367e3bc
|
unify _sleep_state_changed and _disable_state_changed into _state_changed
|
2020-09-01 18:26:42 +02:00 |
|
Bas Nijholt
|
25cbcf635b
|
remove ._manual_time dict
|
2020-09-01 18:16:11 +02:00 |
|
Bas Nijholt
|
f02be53d3f
|
make methods private
|
2020-09-01 17:58:51 +02:00 |
|
Bas Nijholt
|
ce19976c5e
|
fixes from previous commit
|
2020-09-01 17:28:38 +02:00 |
|
Bas Nijholt
|
9e03d5aeeb
|
remove arg in get_sunrise_sunset and call update in __init__
|
2020-09-01 16:44:24 +02:00 |
|
Bas Nijholt
|
4c9d1f6659
|
use async functions and call trackers/listeners in the correct place
|
2020-09-01 16:40:29 +02:00 |
|
Bas Nijholt
|
b70191d634
|
rename once_only -> only_once
|
2020-09-01 12:45:10 +02:00 |
|
Bas Nijholt
|
6ffddbda61
|
remove unused import and code
|
2020-09-01 12:44:02 +02:00 |
|
Bas Nijholt
|
76b544682e
|
fix typos and use self._brightness
|
2020-09-01 12:38:44 +02:00 |
|
Bas Nijholt
|
98efae7e40
|
be explicit in unpacking RGB
|
2020-09-01 00:23:49 +02:00 |
|
Bas Nijholt
|
9dc04bc7c1
|
remove code that wasn't needed
|
2020-09-01 00:11:36 +02:00 |
|
Bas Nijholt
|
d865cdbf9f
|
remove unused attributes
|
2020-09-01 00:01:34 +02:00 |
|
Bas Nijholt
|
1fd9d4764c
|
be consistent with brackets
|
2020-08-31 23:59:04 +02:00 |
|
Bas Nijholt
|
49a0e461d7
|
introduce self._lights_types
|
2020-08-31 23:57:16 +02:00 |
|
Bas Nijholt
|
29010105c1
|
change elif in if when returning
|
2020-08-31 23:46:36 +02:00 |
|
Bas Nijholt
|
3475bd9b90
|
date is never None and renames
|
2020-08-31 23:41:36 +02:00 |
|