Skip to content

Is it possible to turn on prefer_rgb_color after sunset #779

Closed Answered by basnijholt
danis197 asked this question in Q&A
Discussion options

You must be logged in to vote

We can create an automation that changes the prefer_rgb_color setting of the Adaptive Lighting integration after sunset. Additionally, we can create a virtual switch that allows the user to easily toggle the prefer_rgb_color setting on and off.

Here's how you can achieve this:

1. Automation to set prefer_rgb_color after sunset:

automation:
  - alias: "Set prefer_rgb_color after sunset"
    trigger:
      platform: sun
      event: sunset
    action:
      service: adaptive_lighting.change_switch_settings
      data:
        entity_id: switch.adaptive_lighting_default  # Replace with your Adaptive Lighting switch entity_id
        prefer_rgb_color: true

2. Create a virtual switch to toggle p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danis197
Comment options

Answer selected by basnijholt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants