Crall

Untitled

Nov 22nd, 2025
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.92 KB | Source Code | 0 0
  1. type: custom:mushroom-template-card
  2. primary: |-
  3.   {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
  4.   Garaget är öppet
  5.   {%- else -%}
  6.   Garaget är stängt
  7.   {%- endif %}
  8. secondary: |-
  9.   {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
  10.   Klicka för stäng
  11.   långtryck för kamera
  12.   {%- else -%}
  13.   Klicka för öppna
  14.   långtryck för kamera
  15.   {%- endif %}
  16. icon: |-
  17.   {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
  18.   mdi:garage-open
  19.   {%- else -%}
  20.   mdi:garage
  21.   {%- endif %}
  22. entity: switch.garageporten_switch_0
  23. hold_action:
  24.   action: navigate
  25.   navigation_path: /lovelace/5
  26. multiline_secondary: true
  27. badge_icon: mdi:cctv
  28. layout_options:
  29.   grid_columns: 4
  30.   grid_rows: 2
  31. color: |-
  32.   {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
  33.   orange
  34.   {%- else -%}
  35.   green
  36.   {%- endif %}
  37. vertical: true
  38. features_position: bottom
  39.  
Advertisement
Add Comment
Please, Sign In to add comment