From a80770477d7727c1f4a4a94feefd6c9e69919633 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 21 Aug 2020 23:55:57 -0400 Subject: [PATCH] Launch is immienent automation needs work. --- config/packages/space.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/packages/space.yaml b/config/packages/space.yaml index bc4767f..d419205 100755 --- a/config/packages/space.yaml +++ b/config/packages/space.yaml @@ -52,6 +52,27 @@ sensor: {% endfor %} automation: + + # - id: launch_window + # alias: Launch Window Approaching + # trigger: + # - platform: state + # entity_id: sensor.launch_window + # condition: + # - condition: template + # value_template: "{{states('sensor.launch_window') != 'unknown'}}" + + # action: + # - wait_template: >- + # {{((as_timestamp(now()) - states('sensor.launch_window') | float) | abs < 601)}} + # - service: script.ah_report + # data: + # call_launch: 1 + # - service: script.text_notify + # data_template: + # who: "jeff" + # title: "Laumch Imminent" + # message: "A Launch is imminent" - id: iss_tweet initial_state: true