Benjamin Auquite
f0b487320d
Squashed commit of the following:
...
commit 5b927dbb02
Merge: 78395ee a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:46 2023 -0500
Merge branch 'main' into adjust_adapt_until_sleep
commit 78395eea65
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:38:11 2023 +0000
Update README.md, strings.json, and services.yaml
commit bc39f5e977
Merge: e30b7de c4b5067
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:36:39 2023 +0000
Merge c4b5067b05 into e30b7debe5
commit c4b5067b05
Merge: 7244a5f 91d6065
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:36:25 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit 7244a5f483
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:36:14 2023 -0500
Update const.py
commit 91d606586f
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:28:58 2023 +0000
Update README.md, strings.json, and services.yaml
commit 4509c0a0f1
Merge: e30b7de e46d867
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:27:02 2023 +0000
Merge e46d867854 into e30b7debe5
commit e46d867854
Merge: e7e266b 3b61f49
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:26:56 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit e7e266b5a1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:26:47 2023 -0500
Update const.py
commit 3b61f49fb3
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:26:09 2023 +0000
Update README.md, strings.json, and services.yaml
commit 7f952e0658
Merge: e30b7de a4d5f86
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:24:27 2023 +0000
Merge a4d5f861ff into e30b7debe5
commit a4d5f861ff
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:24:20 2023 -0500
autofill workaround
commit 06dd2a5c9a
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:23:01 2023 -0500
Revert "Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep"
This reverts commit bca9f1bd3d , reversing
changes made to 840aab6158 .
commit bca9f1bd3d
Merge: 840aab6 2d74a31
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:22:19 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit 840aab6158
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:22:07 2023 -0500
add `adapt_color_temp_until_sleep`
supports backward-compatibility
commit 2d74a313bb
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:14:31 2023 +0000
Update README.md, strings.json, and services.yaml
commit 553265a1e8
Merge: e30b7de b53a5af
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:12:53 2023 +0000
Merge b53a5aff68 into e30b7debe5
commit b53a5aff68
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:11:48 2023 -0500
add new config option
commit 4e1c769feb
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:06:09 2023 -0500
initial commit
2023-04-11 19:10:37 -05:00
Benjamin Auquite
d1a7b9f970
Squashed commit of the following:
...
commit aad2eaf595
Merge: 090c0ab a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:37 2023 -0500
Merge branch 'main' into add_flat_limits_to_configuration
commit 090c0abc6d
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:30:40 2023 +0000
Update README.md, strings.json, and services.yaml
commit cb27264d6a
Merge: e30b7de f18c5f1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:28:50 2023 +0000
Merge f18c5f161b into e30b7debe5
commit f18c5f161b
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 03:59:33 2023 -0500
initial commit
2023-04-11 19:09:38 -05:00
Benjamin Auquite
7895075e76
Squashed commit of the following:
...
commit 7069d693b8
Merge: adde5b5 a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:19 2023 -0500
Merge branch 'main' into add-watched-lights
commit adde5b5645
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:34:24 2023 -0500
fix pytest
commit 2c5eaec2d3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 07:27:25 2023 -0500
Revert "Update const.py"
This reverts commit e773af07ca .
commit e773af07ca
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 07:20:23 2023 -0500
Update const.py
commit c167f59ccd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 06:09:14 2023 -0500
Update docs
commit 6220df57d1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:59:26 2023 -0500
fix the test
commit ff292c2c1b
Merge: 4fdf42b 19d4468
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:39:17 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 4fdf42bea1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:39:05 2023 -0500
small fixes
commit 19d4468f63
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:36:54 2023 +0000
Update README.md, strings.json, and services.yaml
commit 70c90181f0
Merge: e30b7de b6a9265
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:34:49 2023 +0000
Merge b6a92650a9 into e30b7debe5
commit b6a92650a9
Merge: 784eed0 ae04ab4
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:34:43 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 784eed09b3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:34:33 2023 -0500
squash merge `alt_detect_method` again
commit ae04ab49a8
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:34:12 2023 +0000
Update README.md, strings.json, and services.yaml
commit cfbd65f976
Merge: e30b7de 3c5ea73
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:32:34 2023 +0000
Merge 3c5ea73341 into e30b7debe5
commit 3c5ea73341
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:32:27 2023 -0500
Update switch.py
commit 2f750694d9
Merge: 429251b 7a9dc8f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:31:13 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 429251b45f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:31:04 2023 -0500
update docs
commit 7a9dc8f24a
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:29:37 2023 +0000
Update README.md, strings.json, and services.yaml
commit 37de4244b1
Merge: e30b7de d52ea53
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:28:01 2023 +0000
Merge d52ea53dcc into e30b7debe5
commit d52ea53dcc
Merge: dbc47c8 e30b7de
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:27:43 2023 -0500
Merge branch 'main' into add-watched-lights
commit dbc47c8a36
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:26:11 2023 -0500
Update switch.py
commit 2db675a434
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:25:44 2023 -0500
merge with `alt_detect_method`
required for this PR
commit dced97b5ca
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:21:51 2023 -0500
merge with `origin\main`
2023-04-11 19:08:49 -05:00
Benjamin Auquite
b6790b14eb
Squashed commit of the following:
...
commit 8dd1b5660e
Merge: 3b3f56f a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:51:11 2023 -0500
merge origin
commit 3b3f56f2d2
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:39:26 2023 -0500
Update test_switch.py
commit 258964d97b
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:07:18 2023 -0500
pass flake8
move stuff out of `async_setup_entry`
commit 5b6ad02e1d
Merge: 251babc fe7bdd3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 06:01:44 2023 -0500
Merge branch 'main' into new-service-calls
commit 251babce9d
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 05:35:16 2023 -0500
fixes and now passes tests
commit d9cd74bef3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 05:15:17 2023 -0500
initial commit, passes most tests.
'function too complex'
2023-04-11 19:07:48 -05:00
Benjamin Auquite
a888afd6dc
Refactor _supported_features ( #565 )
...
* initial commit
* change features to dict
* another slight refactor
2023-04-10 10:07:31 -07:00
Bas Nijholt
b730c7cc90
Add scripts to auto update en.json, strings.json and services.yaml ( #520 )
...
* Add scripts to auto update strings.json and services.yaml
* Run services
* simplify
* Run strings
* rerun
* revert
* allow unicode
* Add CODEOWNERS
* Update CODEOWNERS
* set CONF_USE_DEFAULTS docs
* add field_name
* Auto run scripts
* Update desc
* Update README.md, strings.json, and services.yaml
* double quotes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md, strings.json, and services.yaml
* Add newline
* sync changes between en.json and strings.json
* Update README.md, strings.json, and services.yaml
* double quotes
* fix
* Update README.md, strings.json, and services.yaml
* Add comments
* Remove comments
* shorter
* Update README.md, strings.json, and services.yaml
* Rephrase
* Update README.md, strings.json, and services.yaml
* remove key from desc
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-03 14:59:14 -07:00
Bas Nijholt
19fcb1d6b9
Automatically generate more service tables in the README ( #509 )
...
* Automatically sync more data
* Automatically generate apply table
* Generate manual control
* Add manual control docs
* Update README.md
* Move docs functions to separate file
* Update code
* simple
* no path
* link paths
* Fix link
* missed
* cd core
* Update README.md
* Allow alternative docs
* update readme
* More special
* Fx
* Update README.md
* Remove common descriptions
* Update README.md
* Update README.md
* Rephrase
* Update README.md
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-03 00:58:39 -07:00
igiannakas
9caf3048f1
Continue to adapt color temperature down to the sleep temperature after sunset ( #87 )
...
* Update switch.py
Continue to adapt color temperature down to the sleep temperature after sunset. Results in a gradually warming light during the night time rather than a fixed color temperature throughout the night time.
* Run pre-commit
* Merge branch 'master' into pr/87
* add config option bool `adapt_until_sleep` defaulting to `false`
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
2023-04-03 07:27:07 +00:00
Benjamin Auquite
c915bda9b9
Autoreset_Control_Time - small changes ( #515 )
...
* small changes
* Update README.md
* trivial comment change
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-03 06:57:12 +00:00
Bas Nijholt
ea2a6b0173
Add auto_reset_manual_control with async timer ( #487 )
...
* Add auto_reset_manual_control with async timer
* Add failing test
* Debugging
* Refactor find_switch_for_lights
* Revert changes in is_manually_controlled
* style
* Fix test_manual_control
* add types
* fixes
* dict
* make all tests pass
* text
* Rework find_switch_for_lights
* Style
* Better check
* revert, do in other test!
* No need to log when raising
* Add type hint
* Suggestion https://github.com/basnijholt/adaptive-lighting/pull/488/files#r1152408541 by @th3w1zard1
* Small fixes
* document new config everywhere (#496 )
* chore(docs): update TOC
* undo change
* fi
* Update README.md
* Update README.md
* chore(docs): update TOC
* Update README.md
* Use markdown-code-runner
* Remove
* Use markdown-code-runner instead of packaged solution
* fix comment
* Only commit when needed
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-03 02:22:23 +00:00
Bas Nijholt
cc8ce29a8a
Auto-generate the configuration options documentation ( #498 )
...
* Autogenerate the documentation and strings
* Line limit
* Split
* Happy pre-commit
* Split up workflows
* Generate table function
* raise
* Add gen script
* chore(docs): update TOC
* Add gen script
* path
* Run - name: Install Home Assistant
* chore(docs): update TOC
* add copyright
* Fix branch name
* Run on PRs
* dev
* remove steps
* use matrix
* Run script
* chore(docs): update TOC
* Try fixing CI
* fix
* test
* refactor
* chore(docs): update TOC
* fix
* update
* use v3
* rename
* Fix input
* fix pytest
* fix path
* paths
* Change to github.head_ref
* More backticks
* Add extra text
* chore(docs): update TOC
* backticks
* Update README.md
---------
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-01 23:43:20 -07:00
Benjamin Auquite
c05e0cc244
Change attributes in AdaptiveSwitch via service call ( #443 )
2023-03-27 09:05:24 -07:00
Benjamin Auquite
08ff04141e
Feature requests: Switch now optional for service calls | New default icons | Reload .yaml w/o restart | adapt_delay ms ( #459 )
...
* added #274
* attempt getSwitchFromLightId()
* Update switch.py
* changed from register_entity_service to hass.services.async_register
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update services.yaml
* Update switch.py
* test
* test builds ready
* target selector may not be possible with current syntax
priority is backwards-compatibility as I know most people will smash that update button
* expanded light groups
* test builds ready
* add feature #104
* Update custom_components/adaptive_lighting/switch.py
Co-authored-by: Chris <firstof9@gmail.com>
* Might as well type both. No reason not to.
Co-authored-by: Chris <firstof9@gmail.com>
* Might as well type both. No reason not to.
Co-authored-by: Chris <firstof9@gmail.com>
* Reformatted debug messages.
Reimported ServiceCall as suggested
* Multiple switches allowed again in services.
Apparently this was possible before.
With this change, the `lights` argument must not be passed with multiple switches, or the integration has no way of knowing what the user wants to do. Integration did not make this check in prior versions.
Also reformatted the debug messages.
Removed `automerge.yaml` (my apologies)
* Reload config without restart.
You can now reload any changes to the yaml file without restarting your home assistant. Should show a 'reload' button in your integrations page or you can call the homeassistant reload integration service call.
See https://community.home-assistant.io/t/how-to-allow-custom-compontent-for-yaml-configuration-reloading/391190/4
* Use snake_case for function name 'parseServiceArgs'
* Slight rephrase
* Small style changes
* Rephrased debug messages.
Removed `integration_entities` as we rewrote the code from that function already in parse_service_args. Reference function now above parse_service_args.
* removed: `these_switches = data = None`
* Factor out _find_switch_with_lights
* Rename function and add log statement
* Remove pylint marker
* Handle multiple switches found
* Small changes
* Rename _parse_service_args to _get_switches_from_service_call
* Rephrase log messages
* Add type hint
---------
Co-authored-by: Chris <firstof9@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 20:22:05 -07:00
Benjamin Auquite
231e7c197d
Show config options on the switch as attributes with include_config_in_attributes option ( #445 )
...
* Switch attributes now show the config settings.
`sunset_time`, `sunrise_time`, `max_sunrise_time`, and `min_sunset_time` show 'null' when not overridden - TODO
* fixed basnijholt's requested issues
* Run pre-commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* 'configuration' attr holds list of config options
returned the `=` from basnijholt's review.
* Small style changes
* Add include_config_in_attributes to en.json
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 12:43:51 -07:00
Mark Niemeyer
ff6494240d
add a delay between sending of commands when using separate_turn_on_commands
2022-11-27 20:37:28 +01:00
Sören Beye
d0010740ca
Add max_sunrise_time and min_sunset_time overrides
2022-11-08 17:37:57 +01:00
Bas Nijholt
4a6c966a53
Change order
2022-08-31 23:18:09 -07:00
Bas Nijholt
f500a3758e
Update to translations and cleanup
2022-08-31 23:18:09 -07:00
Bas Nijholt
29a4b8a33c
Add selection between RGB and color temp
2022-08-31 23:18:09 -07:00
Bas Nijholt
d3dce3166e
Add strings and options
2022-08-31 23:18:09 -07:00
Bas Nijholt
7d10259bc8
Use RGB selector
2022-08-31 23:18:09 -07:00
Bas Nijholt
dd141d2335
Merge pull request #239 from MangoScango/delay
...
Avoid flickering on light turn on with a configurable delay
2022-08-29 09:29:51 -07:00
Bas Nijholt
01fd7f96e2
Run all pre-commit filters
2022-08-28 15:08:03 -07:00
MangoScango
d56852a197
Update Strings
2021-12-24 12:46:02 -05:00
MangoScango
c509bd81c0
add adapt_delay config
...
Option to set a delay between when a lightstate off -> on event is detected, and lights are adapted. Trying to adapt lights that are still going through their initial turning on fade in transition can cause flickering, so setting this to a number higher than the transition time avoids the problem.
2021-12-24 11:44:34 -05:00
Avi Miller
fa10d95305
Make the transition time to/from sleep mode configurable
...
Signed-off-by: Avi Miller <me@dje.li>
2021-09-16 14:15:36 +10: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
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
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
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
6a1bb180b5
change order
2020-10-09 15:13:09 +02:00
Bas Nijholt
6c6fe59e6f
change order
2020-10-05 14:41:21 +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
3eb593ec6d
add take_over_control feat
2020-10-03 14:55:02 +02:00
Bas Nijholt
303e2fe27a
add sleep_mode switch and deprecate disable_state/entity
2020-10-02 19:47:06 +02:00
Bas Nijholt
1c88ecc572
renames
2020-09-29 23:39:46 +02:00
Bas Nijholt
eda8c971f3
rename again
2020-09-29 23:11:52 +02:00
Bas Nijholt
53bf68748a
rename to adapt_brightness, adapt_color_temp, and adapt_rgb_color
2020-09-29 23:09:54 +02:00
Bas Nijholt
0c76334124
update to latest PR https://github.com/home-assistant/core/pull/40626
2020-09-28 20:48:09 +02:00
Bas Nijholt
e6e51dac76
always use color_temp over rgb
2020-09-28 16:31:41 +02:00
Bas Nijholt
6a5ded6981
update to latest PR
2020-09-28 13:10:41 +02:00
Bas Nijholt
a4b4ef3acd
fix problem with turn_off transition
2020-09-27 16:21:42 +02:00
Bas Nijholt
869ff917e0
rename disable_color -> disable_color_adjust
2020-09-27 01:18:39 +02:00
Bas Nijholt
199d31b891
add disable_color option
2020-09-27 00:19:08 +02:00
Bas Nijholt
5ee3575efd
fix the 'off' -> 'on' -> 'off' switches
2020-09-27 00:06:31 +02:00
Bas Nijholt
ef04036bfe
fix bug and use vol.In for entity selection
2020-09-26 18:24:44 +02:00