I have a Sonoff RF Bridge with Portisch installed. I am using it successfully to open and close an exterior motorized shade via the mqtt → cover in my config.yaml. I recently received a LED light that uses a RF remote and have the on / off working after converting the rfraw commands. Here is the config for that one:
mqtt:
light:
- name: "Alien Cow Neon"
qos: 0
command_topic: "cmnd/rfbridge/Backlog"
payload_on: "rfraw xxxxx; rfraw 0"
payload_off: "rfraw xxxxx; rfraw 0"
optimistic: true
retain: true
The RF remote has brightness up and down, along with some custom brightness levels of 25, 50, 75, 100 percent. How do I incorporate those into the mqtt config above?
EDIT - My Fix
Here is how I incorporated the above items which are working as intended. I found the mqtt button and have added those as follows:
mqtt:
button:
- name: "Alien Cow Light Brightness Up"
unique_id: alien_cow_brightness_up
command_topic: "cmnd/rfbridge/Backlog"
payload_press: "rfraw xxxxx; rfraw 0"
- name: "Alien Cow Light Brightness Down"
unique_id: alien_cow_brightness_down
command_topic: "cmnd/rfbridge/Backlog"
payload_press: "rfraw xxxxx; rfraw 0"
- name: "Alien Cow Light Brightness 100"
unique_id: alien_cow_brightness_100
command_topic: "cmnd/rfbridge/Backlog"
payload_press: "rfraw xxxxx; rfraw 0"
- name: "Alien Cow Light Brightness 50"
unique_id: alien_cow_brightness_50
command_topic: "cmnd/rfbridge/Backlog"
payload_press: "rfraw xxxxx; rfraw 0"
I then adjusted the icons in HA and am making custom cards:
And yes it really is an Alien Cow light: