Updated Space Notifications a bit. #411
This commit is contained in:
parent
44a0fcbd5d
commit
67236c5a9b
|
@ -4,18 +4,6 @@
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
#------ISS----------------------------------
|
#------ISS----------------------------------
|
||||||
homeassistant:
|
|
||||||
customize:
|
|
||||||
binary_sensor.iss:
|
|
||||||
icon: mdi:satellite-variant
|
|
||||||
friendly_name: ISS Visibility
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: true
|
|
||||||
sensor.launch_window:
|
|
||||||
hidden: False
|
|
||||||
icon: mdi:rocket
|
|
||||||
friendly_name: Rocket Launch Window
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: iss
|
- platform: iss
|
||||||
|
@ -23,7 +11,6 @@ binary_sensor:
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
|
||||||
- platform: launch_library
|
- platform: launch_library
|
||||||
|
|
||||||
- platform: moon
|
- platform: moon
|
||||||
|
@ -58,21 +45,12 @@ automation:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.launch_window
|
entity_id: sensor.launch_window
|
||||||
condition:
|
condition:
|
||||||
condition: and
|
- condition: template
|
||||||
conditions:
|
value_template: "{{states('sensor.launch_window') != 'unknown'}}"
|
||||||
- condition: template
|
|
||||||
value_template: "{{states('sensor.launch_window') != 'unknown'}}"
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{as_timestamp(now()) < (states('sensor.launch_window') | float)}}"
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{as_timestamp(now()) >= ((states('sensor.launch_window') | float) - 1800)}}
|
{{((as_timestamp(now()) - states('sensor.launch_window') | float) | abs < 601)}}
|
||||||
- service: script.notify_engine
|
|
||||||
data_template:
|
|
||||||
value1: 'There will be a rocket Launch today - I will notify you later when the launch window starts'
|
|
||||||
- wait_template: >-
|
|
||||||
{{as_timestamp(now()) >= ((states('sensor.launch_window') | float) - 300)}}
|
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'Go Outside! There is a Rocket Launch very soon!'
|
value1: 'Go Outside! There is a Rocket Launch very soon!'
|
||||||
|
|
Loading…
Reference in New Issue