2022.8.1 breaks broadlink

After upgrading to 8.1 all my switches with broadlink are missing.
I downgraded to 7.7 and it is back working
Did i miss something?

There seems to be known problem Issues · home-assistant/core · GitHub

Try reloading the broadlink integration. It has worked for many. Look in the 2022.8 release thread.

Yep, heaps of chat about it in the main 2022.8 release thread.

Does reloading the integration lose any entities? I’d hate to have to re-pair all my Broadlink switches.

This is at least the second time the Broadlink integration has been broken for me after an update. The current issue seems to be the integration itself not starting in time for when switches are setup. So instead I’ve moved it into a script. For example here’s my code for turning on/off my fireplace.

First create a script (in my case in scripts.yaml):

fireplace_on:
  sequence:
  - service: remote.send_command
    target:
      entity_id: remote.basil_remote
    data:
      command: b64:sg8cAAwPDxobDw8aDxoEEg8aExoEEg8aDxobDxsAAlwAAAAAAAAAAAAAAAA=
fireplace_off:
  sequence:
  - service: remote.send_command
    target:
      entity_id: remote.basil_remote
    data:
      command: b64:sgYcAAwODxobDw8aDxoPPg8aExoPGg8bGg8bDxsAAl0AAAAAAAAAAAAAAAA=

You will now be able to test running the scripts to send the codes. Now to turn it into a switch (in my case, in switch.yaml).

  - platform: template
    switches:
      fireplace_mode:
        value_template: "{{ is_state('input_boolean.fireplace_mode', 'on') }}"
        turn_on:
          - service: input_boolean.turn_on
            entity_id: input_boolean.fireplace_mode
          - service: script.fireplace_on
        turn_off:
          - service: input_boolean.turn_off
            entity_id: input_boolean.fireplace_mode
          - service: script.fireplace_off

Then to track if the fireplace is off or on, need to setup a boolean entry (most likely in configuration.yaml - you can do this through the gui, but I like it hard coded just in case I need to do a rebuild from scratch)

input_boolean:
  fireplace_mode:
    initial: off

Obviously this is a pain to do if you have a lot of switches/codes using Broadlink but fortunately for me I didn’t have many.

It looks like maybe there’s a fix in 2022.8.2: