Skip to content

Instantly share code, notes, and snippets.

@alexdelprete
alexdelprete / nuki_hub_mushroom.yaml
Created March 11, 2023 22:41
Nuki Hub Mushroom Card
type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
layout: horizontal
primary: >
{% set lock_name = state_attr('lock.portoncino','friendly_name') %} {% set
trigger = states('sensor.portoncino_trigger') %} {% if
is_state('lock.portoncino','unlocked') and
is_state('binary_sensor.portoncino_door_sensor','off') %}
{{ lock_name }}: closed & unlocked by {{ trigger }}