Hi!
I would like to create statuses for three actions. These statuses are not found in “statuses” at the moment. Is there a way to do this? the statuses should be on/off
This are the used codes now:
show_icon: true
type: custom:mushroom-template-card
primary: Laag
secondary: null
layout: vertical
tap_action:
action: perform-action
perform_action: rest_command.ducobox_mode_man1
target: {}
entity: input_select.ducobox_mode
name: Laag
hold_action:
action: none
icon: mdi:fan-speed-1
icon_color: blue
And i would like to create somthing like this:
- type: custom:mushroom-template-card
primary: Deur dakterras
secondary: '{{states(''sensor.alarmsysteem_temperature_01'')}} graden'
icon: |2-
{% set dooropen = states('sensor.alarmsysteem_magnet_01') %}{% if dooropen == 'on'
%}mdi:door-closed{% else %}mdi:door-open{% endif %}
entity: sensor.alarmsysteem_magnet_01
icon_color: |2-
{% set dooropen = states('sensor.alarmsysteem_magnet_01') %}{% if dooropen == 'on'
%}green{% else %}red{% endif %}
layout: vertical
multiline_secondary: true
fill_container: false
picture: ''
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
Thank you!