Hi. I am trying to configure my multisensor 6 as a trigger device for my home alarm system.
In my Homeassistant states page the sensor shows up as binary_sensor.sensor_stue
I’ve added this piece of code to my automation.yaml but the sensor does not seem to active the alarm.
automation:
- alias: ‘Trigger alarm while armed away’
trigger:- platform: state
entity_id: binary_sensor.sensor.stue
to: ‘active’
condition: - condition: state
entity_id: alarm_control_panel.alarm
state: armed_away
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
- platform: state