Locking the HA interface to avoid accidental changes

Hello,
I’ve been using HA got a couple of years without issue but recently installed a solar modbus integration.

As a result, on the Overview page and under the integration there are now lots of entities with sliders or On/Off buttons. When scrolling up and down the page on a mobile phone or on a laptop with a touchscreen, it is so so easy to accidentally change one of the entities by mistake with no way of realising that you have done this.

Does anyone know of a way to lock and unlock the interface so that accidental changes can be prevented? I was thinking, for example, that there could be a padlock button at the top left, between the Home Assistant title and the Overview heading.

Thanks

there’s this custom frontend plugin that i use for individual entities but I’m not sure if you can lock a whole card or not.

You can lock a whole card or a stack of cards.

1 Like

I like to designate some of my entities as
type: simple-entity
in the yaml-code for my entities cards:

  - entity: number.pw2_battery_both_custom_backup_reserve
    type: simple-entity
    name: Backup Reserve
    secondary_info: last-changed

This shows only the value of the entity in the card itself:
image

But by clicking on it/tapping it once, I can still change the value when I need to:

1 Like

Thanks, But that would take a long time to designate every entity in this way.

Also I am looking to lock the entire UI really rather than just individual entities

The answer was already provided - restriction-card.

I have installed this but no idea how to use it. It’s not exactly easy to work out.

I’ve been using HA for 3 years and Linux in general for 15 year or more and haven’t a clue how to configure this.

Blimey, well I’ve had another look and got a card working But I had no idea that I would have to delve into the yaml code to do this.

Yes it’s great to be able to play around with individual cards, etc but is quite complex to implement for a non-coder like me and very time consuming to go through everything. It (yaml) also seems to be very picky about spacing which is very confusing if you are not a coder.

What I am looking for is one simple button at the top of the entire UI to allow you to lock and unlock everything to prevent accidental changes to absolutely anything. Is this possible?

Thanks

Why don’t you create your own designated pages, so you can arrange things to your liking?

See Settings > Dashboards,

In my case, I build pages for each floor, and each page has a has a view for each room…
Some entities are available on multiple pages…etc…etc…

Ofc I also have one page just showing what I normally use :grinning:

(I would get terrible busy scrolling with only jusy one page for all my entities…i now have + 1200 or so🤔)