Broadlink RM Switch Identifier

I have managed to get a single on/off remote working with HA. I’ve tried to add another but don’t understand the syntax or the component functions. My first remote switch is rcs. I tried a second called rcs2 but this is rejected as unknown. Does the name need to feature within the Broadlink RM or are the control codes just transmitted irrespective? How does the Broadlink know which type of transmitter to use (433/315/IR)? Why are the codes so long? What is a ‘slug’?

This is a super device and needs more support!

Currently it seems that I am the only developer working on this. Since I do not have the RM-pro device, I have someone will step up and help on the development.

Which version of the broadlink code are you using? Can you post your current config?

Hi, thanks for the quick response. Here is my YAML:
"switch:

platform: broadlink
host: "192.168.1.15"
mac: 'b4:43:0d:ee:f1:8e'
switches:
  rcs:
    friendly_name: "Silvercrest"
    command_on: 'sgAAASQOCycMTCQOJA4LJwwmDCYkDiUOCyckDgsnJA4kDgwmDCYMJwsnCycLJwwmJQ4kDgwmJQ4LJ2TsIRIgEhAjDyMQIiESIBIQIyASECIhEiASECIQIxAiECMPIxAiECMhESESECIhEg8jZOwgEiESECIQIw8jIBIhEg8jIBIQIyASIREQIxAiECMPIxAiECMQIiASIRIQIiESDyNk7CESIBIQIhAjECIhEiASECIhEhAiIRIgEhAiECMPIxAjDyMQIhAjIBIhEg8jIREQI2TsIREhEg8jECMPIyATIBIQIiESDyMgEiESECIQIw8jECIQIxAiECMgEiASECMgEhAABdwAAAAAAAAAAA=='
    command_off: 'sgBkASQOCycMSyUOJA4LJwsnDCYlDQwmJQ0MJgwnCyckDgsnDCYlDQsnDCYlDQwnCyckDgsnJA4MJgxMJA4kDgsnDCYMJiUNDCYlDQwnDCYLJyUNDCYMJiUNDCcLJyQOCycMJiUNDCYlDQwnC0wlDSUNDCYMJgwnJA4LJyUNDCYMJgwmJQ4LJwsnJA4LJwwmJQ0MJgwnJA4LJyQOCydj7SASIBIQIhAjDyMgEhAiIRIPIxAiECMgEhAiECIhEREiECIhERAjDyMgEhAiIRIPI2PtIBIgEhAiECMQIiERECIhEhAiECIQIyASDyMQIiESDyMQIiERECMQIiESDyMhEhAiZO0gEiASECIQIxAiIRIPIyASECIQIhAjIBIQIhAjIBIQIhAjIBIQIhAjIBIQIiERECNj7CESIBIQIhAiECIhEhAiIRIPIxAiECIhEhAiECIhEhAiECMgEhAiECMhERAjIREQAAXcAAAAAA=='
  ###rcsA:
  ###  friendly_name: "RCSA"
  ###  command_on: 'sgDoACYMJg0lDSYMJgwMJg0mDCYMJiUNJg0MJgwmDCYNJWTsIRIhERAiESERIhEhESIQIhAiIhEhESERIRIhERAiESIQIhEhIhEhEREiECIQIhEiZOwhESIRECIRIREiECIRIREiECIiECIRIREiESERESIQIhAiESEiESERESIQIhEhESJk7CERIhEQIhEhESIQIhEhESIRISERIhEhESIRIRERIREiESEQIiIRIRERIhAiECIRImTsIREhEhAiECIRIREiESERIREiIREiESERIREiEREhESIQIhEhIhEhEREhESIQIhEABdw='
  ###  command_off: 'sgCGACIRESEiESIRECIRIREiESIQIhEhESIiEBEiECIRIhEhZewhESIRESERIhEhIhEhEREiIRERIiESIRERIREiESERIhAiESIQIiESECIRIhAiESJk7CESIRERIhAiESIhESIQESIiEREhIhEhEREiECIRIREiESERIhAiIhEQIhEiECIRAAXcAAA='"

The HA release is 0.35.2.

How keen are you to develop this. I could send you an RMpro as a contribution?

Regards

Try rcsa instead of rcsA
What is the error in the log?

Here is the log

[32m16-12-24 14:05:23 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.templatee[0m
e[33m16-12-24 14:05:23 WARNING (MainThread) [homeassistant.components.sensor.template] UndefinedError: ‘None’ has no attribute 'attributes’e[0m

The first line is for ‘rcs’ and the second for ‘rcsa’ as suggested, I think!

Well I’ve moved on. My config is as below:
switch:

platform: broadlink
host: "192.168.1.15"
mac: 'b4:43:0d:ee:f1:8e'
switches:
  rcs:
    friendly_name: "Silvercrest"
    command_on: 'sgAAASQOCycMTCQOJA4LJwwmDCYkDiUOCyckDgsnJA4kDgwmDCYMJwsnCycLJwwmJQ4kDgwmJQ4LJ2TsIRIgEhAjDyMQIiESIBIQIyASECIhEiASECIQIxAiECMPIxAiECMhESESECIhEg8jZOwgEiESECIQIw8jIBIhEg8jIBIQIyASIREQIxAiECMPIxAiECMQIiASIRIQIiESDyNk7CESIBIQIhAjECIhEiASECIhEhAiIRIgEhAiECMPIxAjDyMQIhAjIBIhEg8jIREQI2TsIREhEg8jECMPIyATIBIQIiESDyMgEiESECIQIw8jECIQIxAiECMgEiASECMgEhAABdwAAAAAAAAAAA=='
    command_off: 'sgBkASQOCycMSyUOJA4LJwsnDCYlDQwmJQ0MJgwnCyckDgsnDCYlDQsnDCYlDQwnCyckDgsnJA4MJgxMJA4kDgsnDCYMJiUNDCYlDQwnDCYLJyUNDCYMJiUNDCcLJyQOCycMJiUNDCYlDQwnC0wlDSUNDCYMJgwnJA4LJyUNDCYMJgwmJQ4LJwsnJA4LJwwmJQ0MJgwnJA4LJyQOCydj7SASIBIQIhAjDyMgEhAiIRIPIxAiECMgEhAiECIhEREiECIhERAjDyMgEhAiIRIPI2PtIBIgEhAiECMQIiERECIhEhAiECIQIyASDyMQIiESDyMQIiERECMQIiESDyMhEhAiZO0gEiASECIQIxAiIRIPIyASECIQIhAjIBIQIhAjIBIQIhAjIBIQIhAjIBIQIiERECNj7CESIBIQIhAiECIhEhAiIRIPIxAiECIhEhAiECIhEhAiECMgEhAiECMhERAjIREQAAXcAAAAAA=='
  rcsa:
    friendly_name: "Keyring"
    command_on: 'sgDoACYMJg0lDSYMJgwMJg0mDCYMJiUNJg0MJgwmDCYNJWTsIRIhERAiESERIhEhESIQIhAiIhEhESERIRIhERAiESIQIhEhIhEhEREiECIQIhEiZOwhESIRECIRIREiECIRIREiECIiECIRIREiESERESIQIhAiESEiESERESIQIhEhESJk7CERIhEQIhEhESIQIhEhESIRISERIhEhESIRIRERIREiESEQIiIRIRERIhAiECIRImTsIREhEhAiECIRIREiESERIREiIREiESERIREiEREhESIQIhEhIhEhEREhESIQIhEABdw='
    command_off: 'sgCGACIRESEiESIRECIRIREiESIQIhEhESIiEBEiECIRIhEhZewhESIRESERIhEhIhEhEREiIRERIiESIRERIREiESERIhAiESIQIiESECIRIhAiESJk7CESIRERIhAiESIhESIQESIiEREhIhEhEREiECIRIREiESERIhAiIhEQIhEiECIRAAXcAAA='

This works and the only change was the friendly _name? I have other issues now which I wil post in a new topic!