Hi there,
I would like to have the “Arm Home” button disabled when I am currently at home. Any ideas how I could implement that? Thank you!
Hi there,
I would like to have the “Arm Home” button disabled when I am currently at home. Any ideas how I could implement that? Thank you!
would like to post an update here. Got the solution by myself working with the “conditional” cards. This is my configuration:
type: horizontal-stack
title: Alarmanlage
cards:
- type: custom:button-card
color_type: card
entity: alarm_control_panel.gigaset_elements
state:
- value: armed_away
color: red
icon: mdi:alert
name: Aktiviert
styles:
card:
- animation: blink 3s ease infinite
- operator: default
color: green
icon: mdi:shield-check
name: Deaktiviert
size: 15%
- type: conditional
conditions:
- entity: alarm_control_panel.gigaset_elements
state: armed_away
card:
type: custom:button-card
size: 15%
tap_action:
action: call-service
confirmation:
text: Alarm deaktivieren?
service: script.turn_off_alarmanlage
name: Zuhause
icon: mdi:home
- type: conditional
conditions:
- entity: alarm_control_panel.gigaset_elements
state: disarmed
card:
type: custom:button-card
size: 15%
tap_action:
action: call-service
confirmation:
text: Alarm aktivieren?
service: script.turn_on_alarmanlage
name: Ausser Haus
icon: mdi:walk