#Disable entity change based on another state

1 messages · Page 1 of 1 (latest)

bitter pumice
#

Is it possible to disable (whether on a dashboard or in the entity itself) toggling an entity state based on another entity's state? I have a smart socket, and I want to disable someone (even myself) turning the socket on or off, if a certain condition is met. I can disable a button card or hide it or whatever based on a condition, but then I can always still go into the integration and toggle the socket there. Any thoughts?

tidal rune
#

Just... Don't go into the integration and toggle it there

#

But no, there's no service call or anything to enable/disable entities. The best you could do is an automation that watches that entity changing and when it shouldn't change, toggles it back

bitter pumice
#

Kindof assumed it. I kept it disabled on the dashboard, and will indeed just avoid it in the entity itself. Basically want to avoid turning off my 3D printer while it's printing 😄

tidal rune
#

what integration are you using? zha? zigbee2mqtt?

#

i think in mqtt you can disable entities with a custom packet, but i don't remember how to do it

magic cradle
#

you can use Spook to disable entities/devices

#

and enable them again