Sian-Lee-SA / Home-Assistant-Switch-Manager

Switch manager is a centralised component to handle button pushes for your wireless switches. This includes anything passed through the event bus. The component relies on switch blueprints which is easily made to allow GUI configuration of your switches and their button pushes. This helps remove clutter from the automations.
Other
232 stars 85 forks source link

Broken on HA2024.8 #249

Closed adidoes closed 1 month ago

adidoes commented 1 month ago

I'm trying this addon for the first time, I'm on HA 2024.8 and saving in the switch editor seems to alter the yaml in a way that breaks it (see screenshots below).

I suspect this is because HA changed the "service" keyword to "action" and maybe they're doing that automatically for the switch editor form too.

Before save:

image

YAML:

- service: light.toggle
  data: {}
  target:
    entity_id: light.living_room_light

After save:

image

YAML:

- data: {}
  target:
    entity_id: light.living_room_light
  action: light.toggle

I tried clearing cache/different browsers and even the mobile app so it doesn't seem to be a cache issue.

rubin110 commented 1 month ago

I'm hitting this issue too. It seems like whatever is validating if this is a UI editable line is searching for service: and not action:. Changing it to a service: brings the UI option back.

rubin110 commented 1 month ago

This is a dupe of #244. I recommend the maintainer keep the original bug open so that more duplicates don't show up (yes people should search, no they never will).

Sian-Lee-SA commented 1 month ago

I will close this but reopen the other as initially I thought the user was manually adding action to their yaml code but turns out HA is doing it in the background. Sorry, just forgot to reopen...