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
70.94k stars 29.59k forks source link

No longer able to edit or delete multiple helper types #97996

Open c11umw opened 1 year ago

c11umw commented 1 year ago

The problem

When going to the helpers page an opening a counter, I'm presented with the pop-up as normal, but when I click on the gear icon to edit the settings the pop-up shrinks with no editable information. The only option is <- back to the initial pop=up page.

Trying to edit in Developer Tools | states isn't persistent. I created a new counter in case it was an upgrade issue, but I got the same results.

Ones affected: Button Counter Date/Time Number Text Timer Toggle

Not affected: Change device type of a switch (light) Group Min/Max Threshold

All our helpers were created via GUI.

1 - helper page (filtered) image 2 - click on counter image 3 - click on settings image

4 - Trying to remove via Entities page image

What version of Home Assistant Core has the issue?

core-2023.8.3

What was the last working version of Home Assistant Core?

2023.7.*

What type of installation are you running?

Home Assistant OS

Integration causing the issue

counter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/counter/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @fabaff, mind taking a look at this issue as it has been labeled with an integration (counter) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `counter` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign counter` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


counter documentation counter source (message by IssueLinks)

kwithus commented 1 year ago

I have the same issue, but with Helpers Text, input_number, input_button I also can't delete those helpers, I always get the popup, that I can't delete the entity as it is used by an integration, although the one I want to delete is not used by anything I am on 2023.8.2

Dr-know commented 1 year ago

I have also the same issue with helpers ( Text, input_button, ....) even if i create a "test" TEXT helper, and trey to remove this helper without using it, is is not possible anymore .. i am on 2023.8.2

jurviz commented 1 year ago

add input_select and input_datetime to the list of helpers that do not show settings. I'm also on 2023.8.2. On second instance on 2023.7.1 it is still working as expected.

c11umw commented 1 year ago

More of mine are no longer functioning (mirroring the posts above) Edited the op with revised working/not working

NetWitch commented 1 year ago

For me, counter, input_datetime, input_boolean, input_select, and input_number are not changeable. Binary_sensor does still work though.

lionslair commented 12 months ago

Can confirm the same with counter helper. Made one as a test and tried to delete. Get the blank screen.

Latest and running docker.

tomatenkopp commented 12 months ago

confirm this with helper buttons and toggles having HA 2023.8.4 using standard theme everything configured within the UI

ChirpyTurnip commented 12 months ago

Same here. Found this by Googling why I can't delete old helpers that I no longer need...I actually wanted to update them but that wasn't possible either....the helpers work in that they do what they do, but they're all "MC Hammer - Can't touch this....." for everything else...no edits, no deletes, nothing.... :-(

Batzi1967 commented 12 months ago

same here with every helper having HA 2023.8.4 using standard theme everything configured within the UI

MichaelSTK commented 12 months ago

Same here, cant delete helpers. Home Assistant 2023.8.3 Frontend-versie: 20230802.1 - latest Using standard theme Configured within the UI

teekmanb commented 11 months ago

Just upgraded to 2023.9.0 - problem persists..... :-(

kwithus commented 11 months ago

After one month since this issue was first reported: Anyone working on it?

MichaelSTK commented 11 months ago

Is there a way to delete them manualy?

Daandouma commented 11 months ago

downgrading solved it for me, from 2023.8.4 to 2023.7.1 (based on the above information)

manually make a backup, then in a terminal (add-on):

ha core update --version 2023.7.1
MichaelSTK commented 11 months ago

Not possible to delete them in the config files instead of downgrading?

jurviz commented 11 months ago

You can find the helpers in the config/.storage directory in files input_boolean, input_number, etc. You might be able to delete them by editing the files. I haven't done this yet, so no guarantee it will work.

sstarkey12 commented 11 months ago

You can find the helpers in the config/.storage directory in files input_boolean, input_number, etc. You might be able to delete them by editing the files. I haven't done this yet, so no guarantee it will work.

This worked for me. Edited the file, saved, restarted HA and then had to go into Entities and was able to delete it from that page. Everything is latest ver, core 9.1, os 10.5, supervisor 8.3.

kai-seipp commented 11 months ago

Same Issue. Just that I don't even get the gear icon shown after an entity had been deleted a helper was based on I have no way of deleting or restoring it. It does show me a dialog where I can change the underlaying entity. But after saving the new entity is still does not work. Nore can I delete the helper afterwards.

SCR-20230914-iakx SCR-20230914-iadd

pcman75 commented 11 months ago

I had the same problem, I upgraded to Home Assistant 2023.9.2 and it works now for me

ChirpyTurnip commented 11 months ago

Wish I could say the same....for me it is still borken....

I do have the cog: Cog

But clicking it gives me nothing.... Nothing

So still stuck..... :-(

lionslair commented 11 months ago

Same. Counter types can not be deleted

ZitoGit88 commented 11 months ago

This is still broken for me as well.

I can edit the following Helper types: Group, Sensor.

I cannot edit any of the following: Toggle, Timer, Dropdown, Date and/or Time, Number.

I am still able to edit them by going into the config folder /.storage and editing the appropriate helper filer, then restart HA.

Home Assistant 2023.9.2 Frontend 20230911.0 - latest Default Theme

c11umw commented 11 months ago

Same. Issue still persists.

Home Assistant 2023.9.2
Supervisor 2023.09.2
Operating System 10.5
Frontend 20230911.0 - latest

Tested by creating a VM with a fresh install (method) and all helpers worked without error. Seems like it's only affecting "legacy" helpers that have been through updates or perhaps conflict with an add-on/HACS?

In case it's a conflict, my add-ons:

Advanced SSH & Web Terminal
chrony
Cloudflared 
Home Assistant Google Drive Backup
Log Viewer
MariaDB
Mosquitto broker
RPC Shutdown
SQLite Web
Studio Code Server

DHCP server (not running)
Tailscale (not running)
Uptime Kuma (not running)
ZeroTier One (not running)

HACS Integrations:

HACS
Meross LAN
Media player template
Govee LAN Control
Watchman
Xiaomi Cloud Map Extractor
Midea Air Appliances (LAN)
ZHA Toolkit
jokes
Presence Simulation
Sonoff LAN
Better Thermostat
Powercalc
Unifi Counter Sensor
Miele

HACS Frontend:

auto-entities
Better Thermostat UI
button-card
card-mod
Energy Flow Card Plus
Energy Period Selector Plus
Home Assistant Swipe Navigation
Kiosk Mode
layout-card
mini-graph-card
Mushroom
Mushroom Themes
Number Box
Simple Clock Card
sixdegrees-card
slider-entity-row
Slider Button Card
Stack In Card
state-switch
Sun Card
Swipe Card
Xiaomi Vacuum Map Card
lionslair commented 11 months ago

Same. Issue still persists.

Home Assistant 2023.9.2
Supervisor 2023.09.2
Operating System 10.5
Frontend 20230911.0 - latest

Tested by creating a VM with a fresh install (method) and all helpers worked without error. Seems like it's only affecting "legacy" helpers that have been through updates or perhaps conflict with an add-on/HACS?

In case it's a conflict, my add-ons:

Advanced SSH & Web Terminal
Cloudflared 
Home Assistant Google Drive Backup
Log Viewer
MariaDB
Mosquitto broker
RPC Shutdown
SQLite Web
Studio Code Server

DHCP server (not running)
Tailscale (not running)
Uptime Kuma (not running)
ZeroTier One (not running)

HACS Integrations:

HACS
Meross LAN
Media player template
Govee LAN Control
Watchman
Xiaomi Cloud Map Extractor
Midea Air Appliances (LAN)
ZHA Toolkit
Zigbee Home Assistant Toolkit
jokes
Presence Simulation
Sonoff LAN
Better Thermostat
Powercalc
Unifi Counter Sensor
Miele

HACS Frontend:

auto-entities
Better Thermostat UI
button-card
card-mod
Energy Flow Card Plus
Energy Period Selector Plus
Home Assistant Swipe Navigation
Kiosk Mode
layout-card
Lovelace
mini-graph-card
Mushroom
Mushroom Themes
Number Box
Simple Clock Card
sixdegrees-card
slider-entity-row
Slider Button Card
state-switch
Sun Card
Swipe Card
Xiaomi Vacuum Map Card

HACS Automation:

Watchman

Interesting. I'll have to look in developer console in browser see if there is anything. Wonder if starting ha in safe mode will help

c11umw commented 11 months ago

These are all working for me now.

I'm not 100% sure why, but I did this: While going through the process of installing all the Add-Ons and HACS integrations+frontend in the VM, I noticed a slight anomaly in my live setup. In (live) HACS I still had Watchman and Sun Card as custom repositories. They're archived as they've moved into HA core, so in the HACS Custom repositories area I removed them.

Then a restart

I was also poking about looking in /config/.storage at a couple of the files used by helpers (e.g. input_boolean), but I didn't edit anything there. I only viewed. The only other thing I did today was update a blueprint card, but I can't see how that would affect anything

But I just checked and all the helpers I'd listed in the original post are available to edit and delete again 😲

Can someone else check to see if they have the same and if it resolves the issue? Custom Repos are in the 3 dot menu in the top right of HACS' sub-screens image

c11umw commented 11 months ago

Wait ... now they've stopped working again. I am so confused

c11umw commented 11 months ago

Aha .. that's it Closed my browser, reopened and looked at helpers - failed I went back into the Terminal side-bar (launch new session) as I did earlier and tried to view helpers - success

Something to do with launching the add-on allowing access to the helpers, but blocking it until then. Anyone else using Advanced SSH & Web Terminal in their setup?

ZitoGit88 commented 11 months ago

Anyone else using Advanced SSH & Web Terminal in their setup?

Nope. I run HA Container with no HACS and no internal add ons. All my services are ran in other containers.

See my comment above for which helpers do and don't work.

c11umw commented 11 months ago

Ok, so I just saw that it's not specific to SSH. Can someone follow these steps to see if it also works for them as it does for me?

I don't see why opening it in a new tab should be any different, but that's the current workaround for me atm

ZitoGit88 commented 11 months ago

Huh. That is strange. I skipped the first two steps and this worked for me.

Without closing and reopening my browser I went to Setting/Devices and Services/Helpers Clicked a Dropdown Select Helper It did not allow me to edit it I right clicked settings and opened in new tab Setting/Devices and Services/Helpers Same Dropdown Select helper but I can edit it in this tab

Yeah I don't see why this would work either but it did.

I can also confirm that any changes I make to a helper in the new tab are reflected in the helper on both tabs so everything seems to function correctly, not just display like it is.

c11umw commented 11 months ago

This seems to be more a front-end issue than a core code problem, so I've created a new post in the relevant section. Suggest this is closed/archived as a result.

Unable to edit or delete multiple helper types unless opened in second tab

ChirpyTurnip commented 11 months ago

Same here, you don't have to do anything except tell settings to open in a new tab and then it suddenly works.....just bonkers.

:-)

L0bit0 commented 10 months ago

In case it helps, I use mac and chrome as default browser. I had the issue, and tried with salary, now is working on both, Chrome and safari.

Make any sense? No, I know... :-)

if anone use same browsers tan me and can try?

if I can reproduce again, will let you know..

lionslair commented 10 months ago

Try a counter helper. But create then see if you can delete

c11umw commented 10 months ago

In case it helps, I use mac and chrome as default browser. I had the issue, and tried with salary, now is working on both, Chrome and safari.

It should work until you close the browser and start from scratch. Try this:

anishp55 commented 10 months ago

issue still exists on the latest release core: 2023.11.0 frontend: 20231030.1

helper was okay before i went to sleep, now i cannot delete it. quite frustrating


it appears we can force delete it by editing the core.config_entries no sure why we can't remove it from the UI

lionslair commented 10 months ago

The close and open thing doesn't work for me

michaelschwarz commented 9 months ago

I had the same issue, this is how I solved it in my instance:

Mine was disabled, and then shown as kind of "unsupported" in Helpers.

I enabled the entity there, then waiting for 30 seconds and the helper could be edited.

c11umw commented 9 months ago

The close and open thing doesn't work for me

Open Settings in a new tab and it will work. https://github.com/home-assistant/frontend/issues/18004#issuecomment-1732611116

gianpo86 commented 8 months ago

By me was not working on Safari (MacOs) but on Chrome it worked (directly from the helper settings)

jwildman16 commented 7 months ago

Directly navigating to the helpers URL (i.e., https://[yourHA]/config/helpers) in a new tab also works. What I did:

  1. Navigate to Settings > Devices & services > Helpers.
  2. Copy the URL.
  3. Open a new tab, paste the URL, and go.
rinyheuvelman commented 7 months ago

Nothing mentioned above fixed it for me. I had a "switch as x" helper, orphaned after I'd deleted the entity. After going through almost every possible file. Discovered the deleted entities were listed in 2 files in the .storage folder. Found confirmation just moments before editing those files. See: https://community.home-assistant.io/t/remove-leftover-devices-and-entities-from-integration-that-is-uninstalled/316391/9?u=rinyheuvelman

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

jurviz commented 4 months ago

The problem is still unsolved.

PS: But i can't reproduce it on a fresh installation. (Docker compose on Ubuntu 22.04.4, Odroid M1)

J0k3r2k1 commented 3 months ago

Directly navigating to the helpers URL (i.e., https://[yourHA]/config/helpers) in a new tab also works. What I did:

1. Navigate to Settings > Devices & services > Helpers.

2. Copy the URL.

3. Open a new tab, paste the URL, and go.

also works using android add

gianpo86 commented 3 months ago

I suggest to close this issue, since after the new update with categories and labels the issue is no longer existing

kai-seipp commented 3 months ago

I still can't delete or change these broken helpers. So I disagree to closing this issue.

ChirpyTurnip commented 3 months ago

Likewise.....I can following these simple steps:

  1. Go to Settings > Devices & Services > Helpers
  2. Create a new toggle helper:
    1. Name: 1_Delete Me
    2. Icon: mdi:trash-can
  3. Open new helper, switch appears and can be operated.
  4. Now click on cog:
    1. Page does NOT appear
    2. It is not possible to delete or update the helper! I wish this was fixed but it is not fixed. The only way to clear these remains to open the helpers in anew tab. That's not how it should be. :-(

On Mon, 13 May 2024, at 06:25, Kai wrote:

I still can't delete or change these broken helpers. So I disagree to closing this issue.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/97996#issuecomment-2106336799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUIP7ZXOXLMVAFI4BEOUDYLZB6X23AVCNFSM6AAAAAA3HQPKVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGMZTMNZZHE. You are receiving this because you commented.Message ID: @.***>

mkha377 commented 3 months ago

This issue is happening with media_player and input_booleans for me. In conjunction with yaml groups having issues as well, it's broken a few things.