Helper "switch as light" no longer working after upgrade to 2024.8

I have a number of Shelly switches in Home Assistant and some of them are controlling lights, so I used the helper ‘switch as light’. This has worked perfectly until 2024.8.

The switches still work without any issue, but the helper shows “unavailable”. I deleted one and recreated it, same problem.

I don’t see any error messages in the log about this either.

Any idea?

My old school works perfekt
Yaml Code

switch:
  - platform: template
    switches:
      rgbw2_195:
        unique_id: rgbw2_195_0000000000
        value_template: "{{ is_state('light.rgbw2_195', 'on') }}"
        turn_on:
          service: light.turn_on
          target:
            entity_id: light.rgbw2_195
        turn_off:
          service: light.turn_off
          target:
            entity_id: light.rgbw2_195

But in the new Version from HA you can create a template switch helper

I have the same issue here, all philips bulbs (via zigbee zha) are not working anymore!

EDIT:

Found the fix:

Reload ZHA

It turns out my Mosquitto server was down as well and couldn’t start because port 8884 wasn’t available. I had to reboot the Home Assistant VM and then all problems were solved. Apparently the update to 2024.8 left some thing unfinished.