From e2e83ed579ed2122860c85caffb0dec7d590373b Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:11:26 -0600 Subject: [PATCH] added sequences --- conf/apps/apps.yaml | 29 +++++++++++++++++++++++++---- conf/apps/family/chain.yaml | 19 +++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/conf/apps/apps.yaml b/conf/apps/apps.yaml index f3a4618..5a65d0e 100644 --- a/conf/apps/apps.yaml +++ b/conf/apps/apps.yaml @@ -9,9 +9,30 @@ simple_app: - hello_world Perimeter: - dependencies: - - rules - - statemachine - - hal + # dependencies: + # - rules + # - statemachine + # - hal module: perimeter class: Perimeter + another_arg: 1234 + +sequence: + office_on: + name: Office On + namespace: hass + steps: + - homeassistant/turn_on: + entity_id: light.office_1 + brightness: 254 + - homeassistant/turn_on: + entity_id: light.office_2 + brightness: 255 + - sleep: 31 + office_off: + name: Office Off + steps: + - homeassistant/turn_off: + entity_id: light.office_1 + - homeassistant/turn_off: + entity_id: light.office_2 \ No newline at end of file diff --git a/conf/apps/family/chain.yaml b/conf/apps/family/chain.yaml index f8d1abc..64e9bf0 100644 --- a/conf/apps/family/chain.yaml +++ b/conf/apps/family/chain.yaml @@ -19,3 +19,22 @@ parent_app: grand-parent_app: module: grand_parent class: GrandParent + + + + +sequence: + setup_tv: + name: Setup TV + namespace: hass + steps: + - homeassistant/turn_on: + entity_id: switch.living_room_tv + + - sleep: 30 + + - remote/send_command: + entity_id: roku.living_room + loop_step: + times: 5 + interval: 0.5 \ No newline at end of file