Broadlink RM mini 3 getting error

Hi Experts,
Im new to this Home assistant. I im configuring hassio 0.100.2 with my Broadlink RM mini 3. When i add the below command i get error please help what i did wrong.

*switch:*
*  - platform: broadlink*
*    host: 192.168.3.23*
*    mac: 'C8:F7:42:83:12:36'*
*    type: rm2*
*    timeout: 15*
*    retry: 5*
*    switches:*
*      # Will work on most Phillips TVs:*
*      tv_phillips:*
*        friendly_name: "Phillips Tv Power"*
*        command_on: '260058000001209412371139123711131138121410131113113811141212113811381213111311381138123811381113141110391114103811141113121212371138111411381114100005300001244811000C4E0001254A11000D05'*
*        command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA='*

Error i get:

“components/broadlink/init.py (ERROR)”

Please! help me

are there any “*” inside your configuration file?
it should not be started and end with a “*”

this is my configration file

# Broadlink
switch:
  - platform: broadlink
    host: 192.168.3.23
    mac: 'C8:F7:42:83:12:36'
    type: rm2
    timeout: 15
    retry: 5
    switches:
      # Will work on most Phillips TVs:
      tv_phillips:
        friendly_name: "Phillips Tv Power"
        command_on: '260058000001209412371139123711131138121410131113113811141212113811381213111311381138123811381113141110391114103811141113121212371138111411381114100005300001244811000C4E0001254A11000D05'
        command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA='

change type to : type: "rm_mini"
i have no problem with mini3 with type of rm_mini for several month since i set it up.

try the following, this is what I have with your details added

# Broadlink RM pro
switch:
  - platform: broadlink
    host: 192.168.3.23
    mac: C8:F7:42:83:12:36
    switches:
      tv_phillips:
        friendly_name: "Phillips Tv Power"
        command_on: '260058000001209412371139123711131138121410131113113811141212113811381213111311381138123811381113141110391114103811141113121212371138111411381114100005300001244811000C4E0001254A11000D05'
        command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA

the thing that looks like its causing the errors is the * at the start and end of each line, that and your type is set to the wrong model.

once you get it working, forget the tv, look to the mini, there should be an led indicator light to show it is sending a signal, if that comes on then its working you just need to get the right code to send :wink:

and the command_on code doesn’t seem correct , would you try capture it again?

1 Like

I tried it but it still shows the error above.

# Broadlink
switch:
  - platform: broadlink
    host: 192.168.3.23
    mac: C8:F7:42:83:12:36

hi pro!
this is my code in configuration file!

# Broadlink
switch:
  - platform: broadlink
    host: 192.168.3.23
    mac: C8:F7:42:83:12:36
    type: rm_mini
    timeout: 15
    retry: 5

I tried your way but it still shows the above error:cry:

which .yaml file are you adding this to?

is that your only error message?

1 Like

Hi pro!
yes this is only error message
this is my configuration file.
please help me!
configuration file

I added a switch with a bogus command_on and command_off base64 string which caused the LED to flash on the Broadlink when toggled. This suggested to me that there was communication between the Broadlink and homeassistant.

this tells me ( and I am in no way an expert here i’m still a noob myself ) that your switch works, now wee need to program the correct code and find that… give me a min or two and I’ll re-learn how I done mine.

but first do you have the broadlink apps installed on your phone/tablet ?

There is a opensource software called broadlink manager on windows platform, last time i used it worked like a charm. Just copy the code learned from the broadlink manager to HA configuration should work right away.
You have to have a windows machine,though.
the code captured would look like this : JgDKAI2QFDQTERI2EzQTERMREjYSEhIREzUTERISEjYSNRMREzUSEhISEhETNRM1EjYSNRM1EjYSNRM1ExETERISEhISERMRExETERISEjYSERMRExETNRI1EzUTNRISEjUUNBM1Eq2UkBM1ExESNRM1ExESEhI1ExETERM1ExESEhM0EzUTERI2EhISERQQEzUSNhM0EzUTNRI2EjUTNRMREhISEhIRExETERMREhISEhM0ExEUEBMREjYSNRM1EzUSEhI1EzUTNRIADQUAAAAAAAAAAAAAAAAAAA==

here is a video from Dr Zzzs on Youtube showing step by step how to set it all up and get your codes

https://www.youtube.com/watch?v=CEwuMh80CSA

hope it helps you

I had the broadlink apps installed on my phone. In home assistant
When I use services “broadlink.learn” to learn commands, the error message above.
I used the software “Broadlink Manager” to learn commands. and
I have linked them

if it works for you and you know how to do it then it’s the right method for you :wink:

is that you all working now?

thanks you! I have linked them

Nice ! Enjoy :laughing: