hi i need help i’m newbie at this. I have a rf remote control that has many functions that are accessed by pressing the same key several times: example with the mode + key I advance with the same rf command through the internal menu of the device until I reach the desired function.
I have captured the rf commands of each function as follows:
I have created a switch with the name, from mode +
switch:
#MODE+
- platform: mqtt
name: “controlPixel_Mode+”
command_topic: “cmnd/RFBridge/Backlog”
availability_topic: “tele/RFBridge/LWT”
payload_available: “Online”
payload_not_available: “Offline”
state_topic: “tele/RFBridge/RESULT”
payload_on: “RfSync 12210; RfLow 450; RfHigh 1230; RfCode #B04009”
payload_off: “RfSync 12210; RfLow 450; RfHigh 1230; RfCode #B04009_off”
state_on: “#B04009”
state_off: “#B04009_off”
optimistic: true
retain: false
qos: 1
I want to create a new swich, for example color fuxia, that contains the rf command of the color blue and through a script execute 2 times the command mode +. I have tried by all means but I surpass myself.
now I have created a script that I have named fuxia color: