Automation gui keeps closing

When i am trying to add automations, the gui keeps closing the configuration box, if i refresh the page it will work for a short while then closes again on the next bit. This happens across three different browsers, and no plugins on browser

Small screen recording here to show

1 Like

It was already reported to HA, I still am not sure why it takes for such “Major” issue to not be fixed ASAP. Anyway, pretty sure HA team is already working on it.

It has something to do with Browsers backing up to previous page. You might try changing browser.

I have also had success with FireFox browser if you keep Developer Tools open on the side (F12). Chrome/Brave/Edge seem to not fix the issue.

Cheers for this, I am using Zen which is Firefox fork, hadnt tried with the dev tools open will give that a shot thank you.

FWIW, it does work in the mobile app, that’s how im adding them at the moment

Yes, mobile app doesn’t work like browser, there’s just something that triggers the “Back to previous tab” option in browsers.
Feel free to try Firefox with developer tools open, that might work.

Fixed it with a small userscript to disable back button for now

// ==UserScript==
// @name         HASS - Disable Back Button
// @namespace    http://tampermonkey.net/
// @version      1.0
// @match        http://192.168.0.4:8123/config/automation/dashboard
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    // Push a dummy state to prevent going back
    history.pushState(null, null, location.href);
    
    // Intercept back button and stay on current page
    window.addEventListener('popstate', function(event) {
        history.pushState(null, null, location.href);
    });
})();

No need to hide the match, its an internal IP address :slight_smile: