From 32ae02981433b6dbb320f5a62e5b53a457a69a1d Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sun, 6 Apr 2025 14:26:47 +0200 Subject: [PATCH] Add examples to Comelit (#38381) --- source/_integrations/comelit.markdown | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/source/_integrations/comelit.markdown b/source/_integrations/comelit.markdown index 1624e8e1d40..065ee69f15c 100644 --- a/source/_integrations/comelit.markdown +++ b/source/_integrations/comelit.markdown @@ -57,6 +57,47 @@ There is support for the following platform types within Home Assistant: description: Comelit VEDO System. {% endconfiguration_basic %} +## Examples + +### Automation: Activate the alarm when you leave home + +```yaml +automation: +- alias: "Arm alarm away" + id: "arm_alarm_away" + triggers: + - platform: state + entity_id: person.simone + to: "not_home" + actions: + - action: alarm_control_panel.alarm_arm_away + target: + entity_id: alarm_control_panel.home + data: + code: "12345" +``` + +### Automation: Close the covers at sunset if you are not at home + +```yaml +automation: +- alias: Close covers at sunset + id: "covers_close_sunset" + trigger: + - platform: sun + event: sunset + condition: + conditions: + - alias: "condition alias (not home)" + condition: state + entity_id: group.person_family + state: "not_home" + action: + entity_id: + - cover.group_home_covers + service: cover.close_cover +``` + ## Data updates This integration {% term polling polls %} data from the device every 5 seconds by default.