Global light brightness

Hi all,
As a severe migraine sufferer I want to create a migraine mode for my house. Now every lightbulb in my house is a limitlessLED bulb so what I want to do is if migraine mode is on, then instead of the previous brightness it will set it to a specified color and the brightness to some predefined low level.

Is there any way I can have a customization (or something else) that would allow the lights to work normally when migraine mode is off and be as specified when its on?

Thanks all

sure,

Use an automation triggering on the input_boolean.migraine and set a scene for group.all_lights to go into migraine mode (use whatever brightness you might need)

and of course rest to normal when boolean == ‘off’

or use a light switch

Hi @Mariusthvdb would that not turn on all lights in the house?
What I think I am looking for is to insert into the light on mechanism a check for migraine mode and adjust the brightness accordingly.

Perhaps I should go read up on scenes as I have not used them yet

Thanks

yes, I thought that what you wanted. Your topic is about Global Brightness …?

You can also set individual lights, or add several to a lights group and use that group. the options are endless really.

scenes are very nice, and coincidentally wrote about them earlier today

1 Like

Thanks will have a read

@Mariusthvdb So I have had a wee read and play around with scenes. I dont think they are what I want.

To clarify I want is whenever any light is turned on it will use the brightness level that has been set via migraine mode automation i.e. on (low lights) or on (normal brightness).

I was thinking I would use a data_template perhaps in a global customization?

Something along the lines of this in customize.yaml

light.*:
brightness: “{{ states(‘input_number.lighting_brightness’)|int }}”

Just not quite sure where or how to use it

Thanks

if setting in an automation, this would be your command:

  - service: light.turn_on
    data_template:
      entity_id:
        - light.driveway
        - light.parking_light
      brightness_pct: >
        {{states('input_number.perc_outdoors_brightness')|int }}

(change the entity_ids of course…)

don’t think that glob would work because that isn’t conditional in that form, you’d have to change it to something like

{% if is_state('input_boolean.migraine','on')%} {{states('input_number.perc_migraine_brightness')|int }}
{% else %} {{states('input_number.perc_regular_brightness')|int }}
{% endif%}

you could also make an automation triggering on the input_boolean.migraine with that brightness template.