Skip to content

feat: enable changing temperature with on button when light is on#26

Open
mgrove36 wants to merge 12 commits intodamru:mainfrom
mgrove36:main
Open

feat: enable changing temperature with on button when light is on#26
mgrove36 wants to merge 12 commits intodamru:mainfrom
mgrove36:main

Conversation

@mgrove36
Copy link

@mgrove36 mgrove36 commented Apr 17, 2025

Hi! Not sure if this is a feature others would find useful, so feel free to close it if not, but I like being able to adjust temperature from the dimmer. I've found the easiest way to do this is just to press the on button (when the light is already on, of course) - similar to how the v1 Philips Hue dimmers (below) work.

This PR changes the default functionality of the on button in the light-only blueprint to increment colour temperature when the light is turned on, instead of forcing the brightness level (if enabled, otherwise doing nothing). There are helper options for configuring max/min temperatures and the step to increment by. The change is handled by adding the step amount to the current temperature, unless the current temperature is greater than or equal to the maximum. Transition time can also be adjusted with a helper option.

This does however require that the light entity supports the color_temp attribute.

Thanks for your work on this blueprint - it's really useful!

Philips Hue dimmer switch v1

@damru
Copy link
Owner

damru commented Apr 21, 2025

Hey,
This could be a good idea indeed 👍🏻, but this should be optional, same as for brightness forced value, as user doesn't necessarily want to loop over light temperature.

@damru damru changed the title Enable changing temperature with on button (when light turned on) feat: enable changing temperature with on button when light is on Apr 21, 2025
@github-actions github-actions bot added the enhancement New feature or request label Apr 21, 2025
@damru damru self-requested a review May 3, 2025 09:54
@damru damru added the good first issue Good for newcomers label May 3, 2025
@mgrove36 mgrove36 force-pushed the main branch 24 times, most recently from 31d0795 to 6865970 Compare June 5, 2025 19:12
@mgrove36 mgrove36 force-pushed the main branch 2 times, most recently from 8c0f58e to 0dc796a Compare June 5, 2025 19:18
@mgrove36 mgrove36 force-pushed the main branch 2 times, most recently from 9894685 to b981c82 Compare June 9, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants