Bas Nijholt
b9ec138c7d
log fire adaptive_lighting.manual_control event
2020-12-19 14:09:26 +01:00
Bas Nijholt
ff2321ece9
simplify _split_service_data
2020-12-19 14:06:48 +01:00
Bas Nijholt
44c2850e32
add switch entity_id to adaptive_lighting.manual_control event
2020-12-19 13:56:38 +01:00
Bas Nijholt
17ac395124
improve separate_turn_on_commands option
2020-10-30 12:08:47 +01:00
Justin Paupore
c785dcd202
Clean up context ID generation.
...
Using a sha256 hash is major overkill for the purposes of finding
a short hash of a string. This change switches _short_hash to use
Python's built-in hash() function (used for hashing in dicts and sets).
which works just fine for this, and is much faster.
In addition, since context IDs are length-limited, use base-85 encoding
to pack as many bits of the hash and index into the context as possible.
2020-10-27 22:11:19 -07:00
Bas Nijholt
8c39662318
add separate_turn_on_commands option for MQTT lights
...
Closes https://github.com/basnijholt/adaptive-lighting/issues/29
2020-10-27 20:39:05 +01:00
Bas Nijholt
c8620c3338
if lights is not specified in set_manual_control, select all lights
...
Closes #28
2020-10-27 17:52:37 +01:00
Matt Forster
ea87e69d3d
chore: move comment
2020-10-26 13:50:47 -06:00
Matt Forster
f92a4b9e0a
feat: add white value to service data
...
White value is available as a channel for brightness. This adds the support for lights that use it, using the same calculated value as brightness.
2020-10-26 13:44:23 -06:00
Bas Nijholt
3352fa3b9c
fix apply service, closes #24
2020-10-25 09:35:54 +01:00
Bas Nijholt
4ffa6fc0e4
fix bug: make sure 'last_state is not None'
2020-10-22 23:04:57 +02:00
Bas Nijholt
4d242493dc
Merge pull request #19 from myhrmans/patch-2
...
Add translation for Swedish
2020-10-22 14:45:26 +02:00
Bas Nijholt
da0b2552b9
fix name bug
2020-10-22 12:34:36 +02:00
Bas Nijholt
4de7e8d1e0
fix issue with initial state
2020-10-22 11:15:38 +02:00
Martin Myhrman
9d0d069c4b
Add translation for Swedish
2020-10-22 10:37:08 +02:00
Bas Nijholt
f65ba6c2b2
Merge pull request #17 from Fabian1185/master
...
Added german translation
2020-10-21 23:44:12 +02:00
Bas Nijholt
90e8544954
no need to track the state of adapt_brightness and color switches
2020-10-21 23:14:20 +02:00
Bas Nijholt
8b6527fd14
define a adapt_brightness and adapt_color switch and watch for color or brightness related data in light.turn_on
2020-10-21 23:05:12 +02:00
Fabian1185
d1ba4b1be8
Added german translation
...
de.json added
2020-10-21 11:11:31 +02:00
Bas Nijholt
7555638b6f
add percent
2020-10-20 00:06:10 +02:00
Bas Nijholt
5aed27eb0a
small changes that came up in implementing tests
2020-10-19 20:43:58 +02:00
Bas Nijholt
4b31281cf5
remove long doc-string
2020-10-17 16:54:15 +02:00
Bas Nijholt
7ce7f4e2c1
fix tz bug
2020-10-17 15:43:24 +02:00
Bas Nijholt
d3861163d7
rename 'manually_controlled' -> 'manual_control' and fix state save bug
2020-10-16 14:14:44 +02:00
Bas Nijholt
d67479d017
sync
2020-10-14 16:00:51 +02:00
Bas Nijholt
86d1cad588
sync with PR
2020-10-13 22:39:38 +02:00
Bas Nijholt
d1714d800a
fix strings.json
2020-10-11 12:41:30 +02:00
Bas Nijholt
e655956a3f
style
2020-10-11 11:35:03 +02:00
Bas Nijholt
3c1312f0f8
redmean
2020-10-09 18:09:11 +02:00
Bas Nijholt
6a1bb180b5
change order
2020-10-09 15:13:09 +02:00
Bas Nijholt
7521b862b0
synx with PR
2020-10-09 15:07:50 +02:00
Bas Nijholt
a4d0074710
Log all state change events
2020-10-09 09:43:37 +02:00
Bas Nijholt
a570ac8bb8
cleanup
2020-10-08 20:28:04 +02:00
Bas Nijholt
31176f8897
keep contexts around that identify where they come from
2020-10-08 11:54:05 +02:00
Bas Nijholt
ba44113277
fixes
2020-10-06 14:14:19 +02:00
Bas Nijholt
313c1addf4
track state_changed
2020-10-05 23:41:57 +02:00
Bas Nijholt
f1c2101148
add 'manually_controlled' attribute to switch
2020-10-05 18:39:15 +02:00
Bas Nijholt
6c6fe59e6f
change order
2020-10-05 14:41:21 +02:00
Bas Nijholt
91735ebd58
register service after async_add_entities
2020-10-05 12:17:06 +02:00
Bas Nijholt
773a955b85
bug fix
2020-10-05 09:37:57 +02:00
Bas Nijholt
c245298512
sync PR
2020-10-04 23:15:12 +02:00
Bas Nijholt
e81d25983f
change opt order
2020-10-04 15:12:14 +02:00
Bas Nijholt
168484462a
add detect_non_ha_changes option
2020-10-04 15:09:58 +02:00
Bas Nijholt
60cc02af26
detect significant changes
2020-10-04 14:26:42 +02:00
Bas Nijholt
7f6deaa7da
bug fixes
2020-10-03 17:36:26 +02:00
Bas Nijholt
3eb593ec6d
add take_over_control feat
2020-10-03 14:55:02 +02:00
Bas Nijholt
d29649bdfd
fix temp issue
2020-10-03 01:00:26 +02:00
Bas Nijholt
303e2fe27a
add sleep_mode switch and deprecate disable_state/entity
2020-10-02 19:47:06 +02:00
Bas Nijholt
8ec62305f0
exception
2020-10-01 10:09:06 +02:00
Bas Nijholt
8d4e0d12c1
synx
2020-09-30 21:14:23 +02:00