How to restore LED Notification in Home Assistant

I’m looking for help with a Home Assistant automation. I’d like to know how to save the current settings for the LED notification effect and color when changing them temporarily. When the event is over, I want to restore them to what they were previously.

You probably need to create trigger-based template sensors into which to store the state of the LED bar and individual LEDs whenever they change. You would store the previous values that you want to return to using the old_state.state of the events when the LEDs change. Then you would refer to these template sensors to restore the state when you’re done with your temporary LED status.

I have my Inovelli Blues integrated via MQTT, so I don’t know what it might look like in Z-Wave, Matter, or ZHA.

The overall LED bar is in this sensor:

image

If the state is empty, it’s at default values.

The individual LEDs if you change them individually are in this sensor:

image

I generally update all of the individual LEDs in order, so mine almost always shows the value of LED 7.

The events for the individual LEDs look like this (all 7 events shown):

event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 1, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.561168+00:00"
    last_reported: "2026-07-25T16:14:19.561168+00:00"
    last_updated: "2026-07-25T16:14:19.561168+00:00"
    context:
      id: 01KYD0WPD93P8H58VH1RZ1JA67
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 2, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.576762+00:00"
    last_reported: "2026-07-25T16:14:19.576762+00:00"
    last_updated: "2026-07-25T16:14:19.576762+00:00"
    context:
      id: 01KYD0WPDRA2263V69BYCKFQMY
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.576762+00:00"
context:
  id: 01KYD0WPDRA2263V69BYCKFQMY
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 2, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.576762+00:00"
    last_reported: "2026-07-25T16:14:19.576762+00:00"
    last_updated: "2026-07-25T16:14:19.576762+00:00"
    context:
      id: 01KYD0WPDRA2263V69BYCKFQMY
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 3, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.595339+00:00"
    last_reported: "2026-07-25T16:14:19.595339+00:00"
    last_updated: "2026-07-25T16:14:19.595339+00:00"
    context:
      id: 01KYD0WPEBRC8VG9YHVHXQR28R
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.595339+00:00"
context:
  id: 01KYD0WPEBRC8VG9YHVHXQR28R
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 3, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.595339+00:00"
    last_reported: "2026-07-25T16:14:19.595339+00:00"
    last_updated: "2026-07-25T16:14:19.595339+00:00"
    context:
      id: 01KYD0WPEBRC8VG9YHVHXQR28R
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 4, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.608314+00:00"
    last_reported: "2026-07-25T16:14:19.608314+00:00"
    last_updated: "2026-07-25T16:14:19.608314+00:00"
    context:
      id: 01KYD0WPERRPG2WWRWN1E3MTM1
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.608314+00:00"
context:
  id: 01KYD0WPERRPG2WWRWN1E3MTM1
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 4, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.608314+00:00"
    last_reported: "2026-07-25T16:14:19.608314+00:00"
    last_updated: "2026-07-25T16:14:19.608314+00:00"
    context:
      id: 01KYD0WPERRPG2WWRWN1E3MTM1
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 5, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.622343+00:00"
    last_reported: "2026-07-25T16:14:19.622343+00:00"
    last_updated: "2026-07-25T16:14:19.622343+00:00"
    context:
      id: 01KYD0WPF6GN6BQ6QPHEAQRSXZ
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.622343+00:00"
context:
  id: 01KYD0WPF6GN6BQ6QPHEAQRSXZ
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 5, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.622343+00:00"
    last_reported: "2026-07-25T16:14:19.622343+00:00"
    last_updated: "2026-07-25T16:14:19.622343+00:00"
    context:
      id: 01KYD0WPF6GN6BQ6QPHEAQRSXZ
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 6, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.639148+00:00"
    last_reported: "2026-07-25T16:14:19.639148+00:00"
    last_updated: "2026-07-25T16:14:19.639148+00:00"
    context:
      id: 01KYD0WPFQ4760JXEHHGDF46V6
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.639148+00:00"
context:
  id: 01KYD0WPFQ4760JXEHHGDF46V6
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 6, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.639148+00:00"
    last_reported: "2026-07-25T16:14:19.639148+00:00"
    last_updated: "2026-07-25T16:14:19.639148+00:00"
    context:
      id: 01KYD0WPFQ4760JXEHHGDF46V6
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 7, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.671417+00:00"
    last_reported: "2026-07-25T16:14:19.671417+00:00"
    last_updated: "2026-07-25T16:14:19.671417+00:00"
    context:
      id: 01KYD0WPGQMJC4VMWGPDZE0NME
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.671417+00:00"
context:
  id: 01KYD0WPGQMJC4VMWGPDZE0NME
  parent_id: null
  user_id: null
event_type: state_changed
data:
  entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
  old_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: "{'color': 135, 'duration': 255, 'effect': 'solid', 'led': 7, 'level': 30}"
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:13:44.804064+00:00"
    last_reported: "2026-07-25T16:13:44.804064+00:00"
    last_updated: "2026-07-25T16:13:44.804064+00:00"
    context:
      id: 01KYD0VMF48V4DWFHYG2RH08SR
      parent_id: null
      user_id: null
  new_state:
    entity_id: sensor.living_room_fan_light_dimmer_individual_led_effect
    state: >-
      {'color': 0, 'duration': 255, 'effect': 'clear_effect', 'led': 1, 'level':
      0}
    attributes:
      friendly_name: Living Room Fan Light Dimmer Individual led effect
    last_changed: "2026-07-25T16:14:19.561168+00:00"
    last_reported: "2026-07-25T16:14:19.561168+00:00"
    last_updated: "2026-07-25T16:14:19.561168+00:00"
    context:
      id: 01KYD0WPD93P8H58VH1RZ1JA67
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2026-07-25T16:14:19.561168+00:00"
context:
  id: 01KYD0WPD93P8H58VH1RZ1JA67
  parent_id: null
  user_id: null