home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.07k stars 2.79k forks source link

Create automation leads to invisible automation in the UI (related to #100267) #22328

Open zenkraker opened 1 month ago

zenkraker commented 1 month ago

Checklist

Describe the issue you are experiencing

When you deploy the configuration.yaml with the following option:

automation: !include automations.yaml

You can create automations in the UI even though they should be "blocked" because you're using the automations defined in the configurations.yaml. The problem is that you can define a new automation in the UI, do all your steps and all what you need as usual, you click save and you get a green confirmation. But when you go back to the automations page, the automation you just created is gone (it is created in automations.yaml but it is not visible on the UI). There's also a discussion on the forum --> https://community.home-assistant.io/t/automations-not-saving/155921

Describe the behavior you expected

I would expect to see the automations page blocked entirely (visible but non clickable) if you use the configuration.yaml only (maybe display an info saying: automations are available by modifying the configuration.yaml only) OR have a check to see if automations.yaml can actually be saved (e.g check if #automation: !include automations.yaml is commented or similar) instead of getting a green confirmation and then don't see the automation on the UI

Steps to reproduce the issue

  1. In docker, deploy a new HA instance with configuration.yaml with

    automation: !include automations.yaml in it.

  2. Login, go in the UI, go into automations section, create an automation (even an empty one) and save it
  3. Go back to automations page and the automation you just create is not visible (but visible in the automations.yaml)

What version of Home Assistant Core has the issue?

2024.10.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 1 month ago

I do think this will need a core issue, I'm not seeing much that can be done in the frontend:

alinclaudiu commented 3 weeks ago

after save , the condition, action, trigger are renamed to conditions, actions, triggers , after that the UI is empty