After a while I enabled again my manual control panel, but I’m not able to trigger it anymore.
Here the relevant sections of my configuration:
alarm_control_panel:
- platform: manual
name: "Alarm"
pending_time: 5
code: 1111
binary_sensor:
- platform: mqtt
name: "Radar west"
state_topic: "home/alarm/sensor/1"
availability_topic: "home/alarm/availability"
payload_available: "online"
payload_not_available: "offline"
input_text:
text_alarm:
name: Text alarm
initial: ""
automation:
- id: alarm_triggered_armed_home
alias: Trigger alarm while armed home
trigger:
- entity_id: binary_sensor.radar_west
platform: state
to: 'On'
condition:
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_home
action:
- data_template:
entity_id: input_text.text_alarm
value: '{{ trigger.to_state.attributes.friendly_name }}'
service: input_text.set_value
- entity_id: alarm_control_panel.alarm
service: alarm_control_panel.alarm_trigger
hide_entity: false
initial_state: true
- id: send_notification_when_alarm_triggered
alias: Send notification when alarm triggered
initial_state: true
trigger:
- platform: state
entity_id: alarm_control_panel.alarm
to: triggered
action:
- service: camera.snapshot
data:
entity_id: camera.garden
filename: /tmp/ipcamera_snapshot.jpg
- service: notify.pushbullet
data:
title: Alarm triggered!
message: '{{ states.input_text.text_alarm.state }}'
data:
file: /tmp/ipcamera_snapshot.jpg
Well, these are the things that I’ve checked and work:
- arm/disarm alarm
- sensors
- camera and pushbullet notifications
When the sensor changes its state to ‘on’ (by itself or forcing it using the HA debug tools) the alarm doesn’t trigger.
Is there something obvious I’m missing?