Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:mushroom-template-card
- primary: |-
- {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
- Garaget är öppet
- {%- else -%}
- Garaget är stängt
- {%- endif %}
- secondary: |-
- {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
- Klicka för stäng
- långtryck för kamera
- {%- else -%}
- Klicka för öppna
- långtryck för kamera
- {%- endif %}
- icon: |-
- {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
- mdi:garage-open
- {%- else -%}
- mdi:garage
- {%- endif %}
- entity: switch.garageporten_switch_0
- hold_action:
- action: navigate
- navigation_path: /lovelace/5
- multiline_secondary: true
- badge_icon: mdi:cctv
- layout_options:
- grid_columns: 4
- grid_rows: 2
- color: |-
- {% if is_state('binary_sensor.garageporten_input_0_input', 'on') -%}
- orange
- {%- else -%}
- green
- {%- endif %}
- vertical: true
- features_position: bottom
Advertisement
Add Comment
Please, Sign In to add comment