[Light hook] Add support for Adaptive Lighting #115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for taking the time to work on a Pull Request. Your contribution is really appreciated! 🎉
Please don't delete any part of the template, since keeping the provided structure will help maintainers to review your work more rapidly.
Sections marked as * are required and need to be filled in.
Breaking change
If your PR contains a breaking change for existing users, it is important to describe what breaks, how to make it work again and why we did this. This section will be used to craft the changelog entry, after your PR gets approved and merged.
Note: Remove this section if this PR is NOT a breaking change.
Proposed change*
Adaptive lighting is a great custom component enabling following sunlight by smart light sources (especially LED bulbs with variable color temperature).
Component itself listens for events like 'Light powered on', but there is slight delay between powering on light and adapting it to current environment. It is especially painful when You was in WC, let's say at 15:00 and you go there at 23:15- before light dims and warms there is a second or two, where Your eyes are attacked by intensive and cold light.
This PR solves this issue and enables bonding adaptive lighting with a hook, making light powered on with correct light flavour without delay. Solves #112
Checklist*
npm run format
before submitting my Pull Request.