namadori
(Namadori)
October 30, 2017, 9:09am
1
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.
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.
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?
Partybug
(Scott)
October 30, 2017, 6:41pm
2
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.)
namadori
(Namadori)
October 31, 2017, 7:43am
3
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.
- 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.
d3nk1
April 1, 2021, 9:02am
4
I am facing the some issue. Anyone got solved this?
namadori
(Namadori)
April 1, 2021, 9:54am
5
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.