-
Do you have any automations that you have tried? If yes would you please post the formatted YAML code.
-
Do you know how to group entities like lights, door sensors,camera. This will reduce the number of automations you need.
Here is an example of how I set up my groups:
In configuration.yaml I added the following line of code to include a file called groups.yaml
group: !include groups.yaml
My groups.yaml looks like this (I chose 3 entities but you can have as many as you need:
#My Security Groups
alarm_doors:
name: Doors that are monitored
entities:
- binary_sensor.comm_closet_door_sensor_door_window
- binary_sensor.garage_entry_door
- sensor.mechanical_room_door_sensor_access_control_door_state_3
alarm_windows:
name: Windows that are monitored
entities:
- binary_sensor.mil_suite_window
- binary_sensor.owner_sitting_area_window
- binary_sensor.owner_sleeping_area_window
- Do you know how to use helpers? This can help you accomplish automations easier
As an example lets pick an automation and write out what we want the automation to do. This is just text so we have the triggers, conditions and actions clearly defined.
Trigger: A monitored door is opened
Condition: Alarm is not disarmed
Action: Activate alarm, send message
The following is the automation I wrote for the above:
- id: '1625859056723'
alias: 00 - Trigger Alarm
description: Trigger Alarm when door or window is opened
trigger:
- platform: state
entity_id: group.alarm_doors
from: Closed
to: Open
- platform: state
entity_id: group.alarm_windows
from: Closed
to: Open
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- type: turn_on
device_id: 13c1dce685aec1038f55154b4afd06ee
entity_id: switch.smart_chime_alarm_current_value
domain: switch
mode: single
So the trigger is OR. if windows or doors go from closed to open
Conditions are AND. Alarm is not disarmed
Action is: Turn on the siren
If you have the hardware installed please share your trials at group and automations. Feedback can then be given to help you get things working. Remember YAML is turing complete so it is a programming language wrapping the configuration.
Regards