Broadlink - Remote Send Command

I updated my HomeAssistant to supervisor-2021.02.11 and after that Broadlink has stopped working. I looked at the revised documentation on https://www.home-assistant.io/integrations/broadlink and based on the instructions came up with the following:

switch:
  - platform: broadlink
    mac: 'mac:Address:here'
    switches:
      - name: "Upper Lounge AC"
        command_on: "JgDmAG86DSwNKw0QDQ8NEA0sDBANEA0rDSwNDw0sDRAMEA0sDCwNEA0rDisNEAwQDSwMEA0PDSwNEA0PDRAMEA0QDQ8NEAwQDRANDw0PDRANDw4PDQ8NEA0PDSwNDw0QDSwMEA0sDCwNLA0PDRANDw0QDBANEAwQDSwMEA0sDBANEAwQDRAMLA0QDCwNLA0sDCwNEA0PDRANEAwQDQ8NEA0PDRANDw4PDBANEA0PDg8MEA0QDBANDw0QDQ8NEA0PDRAMEA0QDBANEAwQDRAMEA0sDQ8NEAwsDSwNDw0QDQ8NLA0PDRAMAA0FAAA="
        command_off: "JgDmAHE4DyoPKg8NDg8PDQ8qDw4ODg8pDyoPDg0rDw4PDQ8qDyoODg8qDykPDg8NDyoODg8ODioPDg8ODg4ODw4ODw0PDg4ODw4PDQ8ODg4PDg4ODw4ODg8ODg4PDQ8ODyoODg8pDyoPKg8NDw4PDQ8ODg4ODw4ODyoPDQ8qDw0QDQ8NDw4OKg8ODioPKg8qDyoODg8NDw4PDQ8ODw0PDg8NDg8ODg8ODg4PDQ8ODw0PDg8NDw4PDQ8ODg4PDg8NDw4ODg8ODg4PDg4ODw4PDQ8qDw0QDQ8qDykPKg8pDyoTCRANDw4PAA0FAAA"

Prior to this I had following syntax

 switch:
 - platform: broadlink
    host: 192.168.1.26
    mac: 'mac:address:here'
    timeout: 15
    switches:
      dshutter:
        friendly_name: "Shutter"
        command_on: "sgD8AJYyFwwLGAwYCxgXDAsYFwwMGAsYCxgMGAsYCxgLGAsYGAsMGAsYCxgMGBcLDBgXDBgLGAsYDBcMCxgMFwwYCxgXDAwXDBkKGBcMCxgLGQsYFwABn50zFwsMGAsYCxgXDAwXGAsMGAs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Dg8NDg8ODg8ODg4PDQ8ODw0PDg8NDw4PDQ8ODg4PDg8NDw4ODg8ODg4PDg4ODw4PDQ8qDw0QDQ8qDykPKg8pDyoTCRANDw4PAA0FAAA"

After adding the new code in configuration.yaml I went to Developer Tools and set State = On for switch.upper_lounge_ac. Even though it set the state = On but Broadlink didn’t do anything. There was no light beep on the device or anything nor the the appliance turn on. I would be grateful if someone could guide a fix for this issue. Thank you

Have you tried the Broadlink integration? I’m finding it pretty reliable (also on supervisor-2021.02.11). You’ll have to teach it the commands all over again, though, which is a pain.

Yes, I added the device using the Integration Module. The broadlink device is added and it is also telling the correct model of the device. But I am stuck at this point and not sure what to do. I followed the documentation and added the above code in configuration.yaml. Did you do something different?

Yes. I have nothing relating to Broadlink in configuration.yaml. I used the service remote.learn_command in Developer Tools for each command.

It’s pretty laborious if you have a lot of commands, but Developer Tools gives you examples of all the parameters you may need. IR commands are pretty straightforward. If you’re doing RF commands you get prompts in Notifications about when to press the buttons on the physical remote.

Awesome! Thanks

Ahh a follow-up question. I did that and white light popups and when I press remote key it turns off. Now what? How do I get that command or how do I make it work, for e.g. get it as a switch?

In my system, for each physical switch I’ve got an input_boolean “helper” for the HA switch, then two small automations to send a remote.send_command to the Broadlink whenever the input_boolean is toggled - one for on and one for off. You can assign icons to the “helpers” to use them in Lovelace dashboards and they work as switches in scripts and things.

Is that what you mean?