Hue bulb to change color when turned on/becoming visible

I have a Hue bulb that I don’t turn on that often, but I would like it to have a single specific color. Hue bulbs by default can keep color, but it loses the setting really easily - turning the light on-off too quickly, or it to be powered down too long will it make lose the color.

I could achieve this with a dimmer switch but:

  • I don’t want a dimmer switch for this single bulb
  • I don’t want the bulb to be powered on all the time

Is there a way to automate in HA so that when the bulb is on/visible it turns to a specific color?

Thanks!

You can start to set a new default behaviour in the hue bridge with a custom color

And you can make an automation in HA with trigger your light change state to on, then a delay to avoid sending command to fast and finally a light update call

description: "exemple"
mode: single
trigger:
  - platform: state
    entity_id:
      - light.my_hue_bulb
    to: "on"
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 200
  - service: hue.hue_activate_scene
    data:
      scene_name: my_scene
      group_name: my_group
1 Like

Thanks, it works!
To note, before writing this I didn’t know that HA has a great automation interface that can enables to make this through the interface - but the delay tip is useful.

1 Like

Your welcome,
You can make this topic as solved by clicking on the check box on my answer

Tried to look for it but there is no mark as resolved option anywhere visible for me :confused:

You should have this button, but maybe it’s disabled for new users, so nevermind

Screenshot_20230228-231401~2