Commit graph

781 commits

Author SHA1 Message Date
Bas Nijholt
1193f4d102 remove logging call and use hass.async_create_task 2023-08-10 13:14:54 -07:00
Bas Nijholt
8ad56a3403 add one more logging call 2023-08-10 13:10:21 -07:00
Bas Nijholt
ad897fdcba add more logging 2023-08-10 13:02:24 -07:00
Bas Nijholt
e17902484e probably 3a06659120aa629e0db290ec9e83e2ad129baaf3 is the cause 2023-08-10 12:14:35 -07:00
Bas Nijholt
11c4d72bcc limit range 2023-08-10 12:08:26 -07:00
Bas Nijholt
3a79c8dd6a limit range 2023-08-10 11:54:32 -07:00
Bas Nijholt
82c57cc82f test more 2023-08-10 11:48:04 -07:00
Bas Nijholt
d910bf5f7e run a crazy amount of jobs 2023-08-10 00:50:57 -07:00
Bas Nijholt
163493b6d4 one before 2023.7.3 and one after 2023-08-10 00:45:01 -07:00
Bas Nijholt
255b443f25 more 2023-08-10 00:30:44 -07:00
Bas Nijholt
bb09c73dda more 2023-08-09 23:39:49 -07:00
Bas Nijholt
d5c0fe1f0f more 2023-08-09 23:32:16 -07:00
Bas Nijholt
eb7786352e more 2023-08-09 23:25:42 -07:00
Bas Nijholt
4508c3939d verify error in 2023.8.0 2023-08-09 23:19:10 -07:00
Bas Nijholt
814bbd6abc use full ref 2023-08-09 23:18:18 -07:00
Bas Nijholt
34b3dee773 more tests 2023-08-09 23:15:24 -07:00
Bas Nijholt
af6db3dc65 Merge remote-tracking branch 'origin/main' into fix-autoreset-dev-core 2023-08-09 23:10:17 -07:00
Bas Nijholt
a591b238a2 Test working and non-working 2023-08-09 23:09:14 -07:00
Bas Nijholt
9112bb9f73
Bump to 1.19.0 in manifest.json (#734) 1.19.0 2023-08-09 19:06:48 -07:00
Bas Nijholt
cf8bd946ca remove loggin 2023-08-09 18:28:10 -07:00
Bas Nijholt
a641f28d3e change times 2023-08-09 18:27:42 -07:00
Bas Nijholt
76a0f898d9 Fix autoreset_control_seconds_test on dev HA core 2023-08-09 17:41:33 -07:00
Bas Nijholt
5b7ee44629
Fix length of descriptions in UI (config flow) (#732)
* Fix length of strings in UI

* Update README.md, strings.json, and services.yaml

* fix

* add desc

* Update README.md, strings.json, and services.yaml

* mention webapp

* Add desc

* link

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-10 00:17:25 +00:00
Bas Nijholt
487756b345 Add full changelog to releases 2023-08-09 15:01:00 -07:00
Bas Nijholt
750acc9784 Add release-drafter config 2023-08-09 14:57:34 -07:00
Bas Nijholt
0d387d4bcd
Add release-drafter GitHub Action (#731) 2023-08-09 14:56:08 -07:00
Bas Nijholt
435b2ce5d0
Fix adapt_only_on_bare_turn_on and apply does not result in manual_control (#729)
* Fix adapt_only_on_bare_turn_on and apply does not result in manual_control

Closes #723

* fix style
2023-08-09 21:48:18 +00:00
Bas Nijholt
da5147a583
Bump to 1.19.0b5 in manifest.json (#728) 1.19.0b5 2023-08-09 13:56:00 -07:00
Bas Nijholt
597e050ab2
Prevent light.turn_on of light that was just turned off (#727)
Closes #726
2023-08-09 13:54:18 -07:00
Bas Nijholt
b06d38eb24 Add mp4 link in README 2023-08-08 18:03:17 -07:00
Bas Nijholt
db5f9d623c
Mention app more prominently and improve style (#725)
* Mention app more prominently

* Use dark-mode

* add setuptools

* no cyber

* no not run on PR

* Ruff fixes

* Add link

* remove unused deps
2023-08-08 17:34:35 -07:00
Bas Nijholt
f8e7880a96
Split up SunLightSettings and improve https://basnijholt.github.io/adaptive-lighting/ (#719)
* Split up SunLightSettings

* Renames

* factor out SunEvents

* more renames

* rewrite

* rewrite more

* simpler

* refactor

* refact

* raise

* refact

* rename

* move method

* clean

* Move to new module 'sun.py'

* make sun independent of HA

* rename

* Move to webapp/homeassistant_util_color.py

* Rework app

* Add link

* new plotting

* app changes

* fix tests

* test clean

* tz fixes

* fix

* use sed

* verbose

* fix tz

* fix

* tiem
2023-08-08 21:31:17 +00:00
pre-commit-ci[bot]
61d51cbf1e
[pre-commit.ci] pre-commit autoupdate (#722)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.281 → v0.0.282](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.281...v0.0.282)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-07 22:20:28 -07:00
Bas Nijholt
00ec76a467
Bump to 1.19.0b4 in manifest.json (#718) 1.19.0b4 2023-08-06 19:21:39 -07:00
Bas Nijholt
ef1546b6b9
Fix min_sunrise_time and max_sunset_time (#717)
Closes #714
2023-08-07 02:21:16 +00:00
Bas Nijholt
69355b8c3a
Small WebApp improvements (#716)
* Small WebApp improvements

* Add link
2023-08-07 00:20:58 +00:00
Bas Nijholt
943a6360c7
Add simple webapp to play with different parameters (#715)
* Add simple webapp to play with different parameters

* ignore
2023-08-06 16:42:56 -07:00
Bas Nijholt
104664d358
Bump to 1.19.0b3 in manifest.json (#713) 1.19.0b3 2023-08-06 11:21:54 -07:00
Bas Nijholt
cb9ae39ee4
Fix adaptive_lighting.change_switch_settings service (#712)
* Fix adaptive_lighting.change_switch_settings service

Closes #623

* filter defaults

* fix mutable

* Revert debugging logs
2023-08-06 11:15:14 -07:00
Bas Nijholt
d2c6811e63
Bump to 1.19.0b2 in manifest.json (#710) 1.19.0b2 2023-08-05 23:06:27 -07:00
Benjamin Auquite
fec50ad526
Adapt lights simultaneously instead of one by one (#529)
* Update switch.py

* Update test_switch.py

* Revert "Update test_switch.py"

This reverts commit 87ea5243b9.

* remove unnecessary create_task

* remove unneeded len()

* Revert "remove unnecessary create_task"

This reverts commit 2c5da6d739.

* use `hass.async_create_task`

---------

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-08-05 21:19:18 -07:00
Bas Nijholt
d44cb66148
Add adapt_only_on_bare_turn_on which instantly triggers manual_control when turning on with brightness or color (#709) 2023-08-05 20:56:32 -07:00
Bas Nijholt
3f17738bd1
Add warning about Zigbee groups (#708) 2023-08-05 16:48:35 -07:00
Bas Nijholt
72419cb60f
Add a min_sunrise_time and max_sunset_time (#707) 2023-08-05 22:08:45 +00:00
Bas Nijholt
11a4489cb5
Bump to 1.19.0b1 manifest.json (#706) 1.19.0b1 2023-08-05 14:42:40 -07:00
Bas Nijholt
51a18f2afb
Allow adaptive_lighting.apply to turn on lights and do not issue log message (#705) 2023-08-05 20:59:58 +00:00
Bas Nijholt
e3a84ffd96
Logging fixes in significant_changes (#704) 2023-08-05 13:52:54 -07:00
Bas Nijholt
a1cec19351
feat: add different brightness ramping mechanisms (#699)
* feat: add different brightness ramping mechanisms

* Rephrase

* Fix curves

* update images

* link to other graphs

* update images
2023-08-05 20:14:21 +00:00
Bas Nijholt
9a7cff9d6a
feat: change the order of options in config flow (#700)
* Change the order of options in config flow

* Update README.md, strings.json, and services.yaml

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-04 21:45:12 +00:00
Bas Nijholt
1ef7ed507e
Implement call intercept for multiple lights (#679) 1.19.0b0
* Implement call intercept for multiple lights

* remove comment

* skip if no eids

* add comment

* fix type

* Fix skipped

* indentation

* Add logging and fix error

* Fix for HA ≤2023.04

* simplify

* remove unused ignores

* Debug mode

* Add test

* Make test failing

* rename switch

* rename lights

* Fix tests

* Rename lights in tests

* Remove unused dependencies

* Improve tests

* More tests

* Remove the DEBUG_MODE

* Add doc-string

* Extra test

* assert

* extra test

* Comments

* fix

* fix

* expand light groups

* more logging

* sort

* Revert is_proactively_adapting checks
This reverts commit 39fd8f2be0.

* simplify the mapping

* Revert "Revert is_proactively_adapting checks"

This reverts commit 18803e8e50.

* test

* no light groups

* do not expand

* Do not expand_light_groups in intercept

* more logging

* Fix

* add comment

* Add multi_light_intercept config option

* Update README.md, strings.json, and services.yaml

* add light group

* fix platform

* add simple test

* turn off again

* Test without take over control

* improve test and fix it in one way

* Fixes

* add cleanup fixture

* format

* Update test_switch.py

* add __str__

* remove unneeded call

* simplify service_data construction

* Generalize is_our_context

* Fix multi_light_intercept: false

* add comments

* add docs

* Update README.md, strings.json, and services.yaml

* Add feature line

* move function

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 17:47:09 -07:00