Light with Low-Mid-High brightness settings

Hi all,
I just installed a cheap LED Regulator with RF Remote. The remote is compatible with Broadlink RM2, I can emulate the buttons from HA.

06

I’d like to setup a command with on-off and the 3 preset brightness levels (100%, 50%, 25%), as these are the only brightness levels that can be selected.

24

Is there a way to use the Light template component, or do I need to create a Custom UI like they did for the Fan component?

I have the 433toMQTTto433 Gateway arduino… with a similar rf remote led lights…

Here is what I did:
switch:
# firefly on/off
- platform: mqtt
name: “firefly on/off”
#state_topic: “home/433toMQTT”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “11752###”
optimistic: true
retain: true
# firefly 100%
- platform: mqtt
name: “firefly 100%”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly 50%
- platform: mqtt
name: “firefly 50%”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly 25%
- platform: mqtt
name: “firefly 25%”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly Mode+
- platform: mqtt
name: “firefly Mode+”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly Mode-
- platform: mqtt
name: “firefly Mode-”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly Speed+
- platform: mqtt
name: “firefly Speed+”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
# firefly Speed-
- platform: mqtt
name: “firefly Speed-”
state_topic: “NothingTopic”
command_topic: “home/commands/PLSL_406/433_1/BITS_24”
payload_on: “11752###”
payload_off: “”
group:
Firefly: switch.firefly_onoff, switch.firefly_100, switch.firefly_50, switch.firefly_25, switch.firefly_mode,
switch.firefly_mode_2, switch.firefly_speed, switch.firefly_speed_2

Not as neat and clean but it does work and all in a group. (Sorry I’m in a hurry and didn’t get the formatting done correctly.)

Thanks, following your suggestion I made up 3 fake switches, and used it in 3 scripts to show them in the interface as “activate” and not as “on-off” switches.

51

  - platform: broadlink
    host: 192.168.2.51
    mac: 'xx:xx:xx:xx:xx:xx'
    friendly_name: Broadlink
    switches:
      faretti:
        command_on: 'xxxxx'
        command_off: 'xxxxxx'
      faretti25:
        command_on:  'xxxxx'
        command_off:  ''
      faretti50:
        command_on: 'xxxxx'
        command_off: ''
      faretti100:
        command_on:  'xxxxxx'
        command_off: ''

script:
  faretti_25:
    sequence:
      - service: switch.turn_on
        entity_id: switch.faretti25
  faretti_50:
    sequence:
      - service: switch.turn_on
        entity_id: switch.faretti50
  faretti_100:
    sequence:
      - service: switch.turn_on
        entity_id: switch.faretti100

groups:
  luci_faretti:
    name: Faretti
    control: hidden
    entities:
      - script.faretti_25
      - script.faretti_50
      - script.faretti_100

This is a workaround, as I’d really like to have it on a single line like in the Fan example.

I am facing the some issue. Anyone got solved this?

Myself, I got rid of the simple regulator and now I am using an H801 with Tasmota. That allows for a 0%-100% setting.

I can advice you to check on HACS. I am using the slider-entity-row and the RGB Light Card to have quick settings from the main dashboard.

image
image