Wenn ich den Button auf Ner anderen Karte per Yaml ändere funktioniert es wie gewünscht ... Aber nur auf dem Handy ! Hab noch 2 fire 10hd und da geht's nicht ,rufe ich die Yaml von dem Button auf hab ich ne Fehlermeldung
YAML:
show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: automation.alarm_balkontur
name: Alarm
icon: mdi:alarm-light
card_mod:
style: |
{% if is_state('automation.alarm_balkontur','on') %}
ha-state-icon {
animation: blink 0s linear infinite;
color: red !important;
}
@keyframes blink { 50% {opacity: 0;} }
{%- else %}
ha-state-icon {
animation: blink 2s linear infinite;
color: green !important;
}
@keyframes blink { 50% {opacity: 0;} }
{%- endif %}