[Workaround] Fibaro RGBW controller remember state

Hi,

I’m using the Fibaro RGBW Controller fgrgbwm441 like the following:
fgs213 -> 24V power supply -> fgrgbwm441 -> LED strip

Generally it is working fine, but the fgrgbwm441 is not always remembering the latest state/brightness whenever i switch off the fgs213 and turn it back on again. I have read in other forums that this is kinda normal and a bug in the fgrgbwm441. So it is behaving from time to time, that the switch is turned on, but the lights are not.

The workaround for me was to have an own automatition rule for the fgs213 which waits 1 sec and tells the fgrgbwm441 to dimm the brightness to 50% as an intial value. Works ok as far as i get it.

  • alias: “Keller Rechts initiale Helligkeit wenn Schalter an”
    id: f
    initial_state: on
    trigger:
    platform: state
    entity_id: switch.fgs213_keller_switch
    to: ‘on’
    action:
    • delay: 00:00:01
    • service: light.turn_on
      data_template:
      entity_id: light.fgrgbwm441_keller_rechts_level_2
      brightness_pct: 50

The dashboard has normal slider which gives me the latest manual selection. Not the current value.
How do i report back the current value of the states.input_number.keller_rechts_helligkeit.state? so that this is been reflected on the dashboard?

Some code:

Automatation:

  • alias: “Keller Rechts Helligkeit”
    id: e
    initial_state: on
    trigger:
    • platform: state
      entity_id: input_number.keller_rechts_helligkeit
      action:
    • service: light.turn_on
      data_template:
      entity_id: light.fgrgbwm441_keller_rechts_level_2
      brightness_pct: ‘{{ states.input_number.keller_rechts_helligkeit.state | int }}’

Configuration:

input_number:
keller_rechts_helligkeit:
name: Keller Rechts Helligkeit
initial: 50
min: 0
max: 100
step: 10
mode: slider

Group:

keller_rechts:
name: Rechts (Marcel)
entities:
- zwave.fgs213_keller
- switch.fgs213_keller_switch
- input_number.keller_rechts_helligkeit
- sensor.fgs213_keller_power
- sensor.fgs213_keller_energy