home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.34k stars 29.88k forks source link

Can't create automations with hassio 0.80.0b1 #17219

Closed Gio76 closed 5 years ago

Gio76 commented 5 years ago

Home Assistant release with the issue: 0.80.0b1

Last working Home Assistant release (if known): 0.79.3

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io installed on a RPi3

Component/platform: Automation Editor

Description of problem: Since updating to 0.80.0b1 I am unable to create new automations via the editor. After clicking on the plus icon, all I get is a blank screen with the title 'New Automation'.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

automation: !include automations.yaml

Additional information: In addition to not being able to create a new automations, a couple of existing ones are not working. In the editor, when clicking on them, I'm greeted with a blank page (just like when trying to create a new automation).

Gio76 commented 5 years ago

I deleted the automations.yaml file, reboot and everything seems to be working again.

koying commented 5 years ago

I have the same problem on 0.80.0b3. Do you mean you brought back automations.yaml to configuration.yaml, or that you started from scratch?

It has to be noted that the automations themselves work fine. Just the web editor is unavailable.

KentEkl commented 5 years ago

Same problem with 0.80.0b5, the editor works with about 50% of the of the old automations, the rest displays a blank screen and I'm not able to create new automations since it only shows a blank screen. When I use the editor for my scripts it works fine. No error messages in the log and the url that shows in the top of the editor display contains the right automation id:

Gio76 commented 5 years ago

I have the same problem on 0.80.0b3. Do you mean you brought back automations.yaml to configuration.yaml, or that you started from scratch?

It has to be noted that the automations themselves work fine. Just the web editor is unavailable.

I started from scratch and that seems to have solved the problem, but only temporarily. Issue reoccured in 0.80.0b2/3/4/5. Issue still there today after updating to 0.80.0

WedHumpDay commented 5 years ago

So, lets understand this. Broken in 0.80.0b(x) code and carried over to the production release?

s1gm0id commented 5 years ago

So, lets understand this. Broken in 0.80.0b(x) code and carried over to the production release?

That does seem to be a troubling possibility.

Does this problem not occur with the Lovelace interface?

What cool features are developers using that would allow this bug to be missed in release testing? I want to be using those features :)

rwagoner commented 5 years ago

I just updated to 0.80.0 and have the same issue. New automation page is blank and nothing happens when I click add trigger, condition, or action on existing automations.

SPCulhane commented 5 years ago

I updated to 0.80.0 production release and is experiencing the same problem. New Automation page is blank. Strange I am able to view/edit/save most of my automation but there are a few that will just display a blank page.

hmmbob commented 5 years ago

On 0.79.0, none of my existing automations can be edited. Chrome console provides 404 error for all. I can create a new automation via the frontend though.

ThomasPrior commented 5 years ago

Is there any workaround for this or is the only way to restore the functionality to go back to the previous release?

ThomasPrior commented 5 years ago

This is fixed in 0.80.1 released an hour ago. https://github.com/home-assistant/home-assistant/releases/tag/0.80.1

hmmbob commented 5 years ago

I still cannot edit old automations though - they give me a 404 error in the Google Chrome console: GET https://[myHAip:port]/api/config/automation/config/aquarium_turn_on_time 404 File not Found. The last part is the unique ID of the automation - all of my automations have an unique ID.

stillbrasko commented 5 years ago

I've updated to 0.80.1 and the automation screen is still blank when after clicking the + button. For what it's worth, my automations file is empty as I'm doing a rebuild.

s1gm0id commented 5 years ago

Same here - no change with 0.80.1 - blank page for new automations. I only have two automations, one of them can be edited, the other cannot.

hmmbob commented 5 years ago

Tagging @balloob to escalate

lordneon commented 5 years ago

I have the same problem with 0.80.2:

When attempting to create a new automation you just get a blank screen and the following message is written to the log file: ha_1 | 2018-10-17 21:21:03 ERROR (MainThread) [frontend.js.latest.201810170] http://foo:8123/frontend_latest/33edb6cd2a122b3482d9.chunk.js:74:2487 TypeError: localize is not a function

hmmbob commented 5 years ago

I still cannot edit old automations though - they give me a 404 error in the Google Chrome console: GET https://[myHAip:port]/api/config/automation/config/aquarium_turn_on_time 404 File not Found. The last part is the unique ID of the automation - all of my automations have an unique ID.

Also 0.80.3 did not fix my automation editing, still seeing GET 404 errors in the console while trying to open existing automations.

I am using lovelace, HA 0.80.3, having all automations in several files in the automation directory, linked from configuration.yaml by a automation: !include_dir_merge_list automation/

Gio76 commented 5 years ago

Same here, issue still present with 0.80.3. Everytime I click on the Plus icon in order to create a new Automation, the below error is logged

https://[myip]:8123/frontend_latest/app-96e769d2.js:91:305 Uncaught TypeError: localize is not a function
balloob commented 5 years ago

This issue has been resolved 80.3. Please close all tabs that have HA open to help the cache get cleared.