Hide switch from lock

Hi,
I am wondering how i could hide switch from a lock class (function to unlock isn’t there) i just want to show state, like locked or unlocked.

Is this possible somehow? :slight_smile:

Brg
Robin

1 Like

KI would recommend you to do template sensor to show the state you want.

Here is an example

sensor:
  - platform: template
    sensors:
      frontdoor:
        friendly_name: 'Frontdoor'
        value_template: '{% if is_state("binary_sensor.frontdoor_sensor", "on") %}Open{% else %}Closed{% endif %}'

Thanks, that solved it :slight_smile:

1 Like