Broadlink RM switch component troubles

Hi, I’m trying to set up the Broadlink RM switch component in my Home Assistant. I have everything set up as explained in the documents. However the switch does not appear in the Front End of Home assistant…
I’m able to receive learn commands through the service developer tools. What I’m I doing wrong?

switch:
  - platform: broadlink
    host: 192.168.1.10
    mac: '34:EA:34:E7:F4:24'
    timeout: 15
    switches:
      receiver:
        friendly_name: "Onkyo Receiver Power"
        command_on:  'JgBQAAABJpQSExE5ERQQFBI3ERMSOBE4EjcSEhM3ETcTEhM2EzcTERMTERM'
        command_off: 'JgBQAAABJpQSExE5ERQQFBI3ERMSOBE4EjcSEhM3ETcTEhM2EzcTERMTERM'

I’m running Hassbian on a Raspberry pi B+

Have you tried hass --script check_config ?
And read this https://home-assistant.io/docs/configuration/troubleshooting/

Yes, I’ve done the script check and all is green. I also tested the yaml structure.

Must say I’m new to this, and only installed the limitlessled component apart from this (which is running fine). are there any other requirements of packages/software for this component?

I also added the home_assistant_shutdown_switch later to test if the switch is working, and this switch does show up.

Your command_on/off look a bit strange mine all end with AAAAAAAA== not TERMTERM so maybe try re-learning them.

Hi. I also had great difficulty installing Broadlink, but in my case, the fault was in the installation.

I did not know that I also had to run installation scripts.
It may seem logical to many, but for those who are not accustomed to programming, they do not remember these “details”.
I don’t know if it’s your case.
In my case i had to manually install broadlink. This post was very useful.

Pip install pycrypto

But if you have all installed well, It may only be an information-viewing problem if you have already created presentation groups on the page.

1 Like

@Paulo106 and @keithh666

Thank you both. Did the pip install pycrypto and it does show up now! Wasn’t clear for me either that this needed to be installed.

Also only copied half of the code as not all was showing in the message. re-learned them and copied it properly. This code indeed ended on AAAAAAAA==

Thanks a lot!

1 Like

Glad you got it sorted :slight_smile: