mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-06-06 16:58:54 +00:00
Updating the Rocket Launch sensor a bit more. #411
This commit is contained in:
parent
671d49ee40
commit
01c088c803
@ -27,7 +27,7 @@ sensor:
|
|||||||
- platform: moon
|
- platform: moon
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
scan_interval: 3600
|
scan_interval: 1800
|
||||||
resource: https://launchlibrary.net/1.2.2/launch/next/10
|
resource: https://launchlibrary.net/1.2.2/launch/next/10
|
||||||
# resource: https://raw.githubusercontent.com/cribbstechnologies/ha_config/master/www/test_launch.json
|
# resource: https://raw.githubusercontent.com/cribbstechnologies/ha_config/master/www/test_launch.json
|
||||||
name: launch window
|
name: launch window
|
||||||
@ -64,14 +64,16 @@ automation:
|
|||||||
value_template: "{{as_timestamp(now()) < (states('sensor.launch_window') | float)}}"
|
value_template: "{{as_timestamp(now()) < (states('sensor.launch_window') | float)}}"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
- wait_template: >-
|
||||||
|
{{as_timestamp(now()) >= ((states('sensor.launch_window') | float) - 1800)}}
|
||||||
- service: script.notify_engine
|
- service: script.notify_engine
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'There will be a rocket Launch today - I will notify you later when the launch window starts'
|
value1: 'There will be a rocket Launch today - I will notify you later when the launch window starts'
|
||||||
- wait_template: >-
|
- wait_template: >-
|
||||||
{{as_timestamp(now()) >= (states('sensor.launch_window') | float)}}
|
{{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!'
|
value1: 'Go Outside! There is a Rocket Launch very soon!'
|
||||||
|
|
||||||
- service: script.tweet_engine
|
- service: script.tweet_engine
|
||||||
data_template:
|
data_template:
|
||||||
@ -107,7 +109,7 @@ automation:
|
|||||||
"/config/www/custom_ui/floorplan/images/branding/space2.png",
|
"/config/www/custom_ui/floorplan/images/branding/space2.png",
|
||||||
"/config/www/custom_ui/floorplan/images/branding/starman.png"
|
"/config/www/custom_ui/floorplan/images/branding/starman.png"
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
||||||
- alias: 'Full Moon -Tweet'
|
- alias: 'Full Moon -Tweet'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
|
BIN
config/www/custom_ui/floorplan/images/branding/Bear Stone Reviews.jpg
Executable file
BIN
config/www/custom_ui/floorplan/images/branding/Bear Stone Reviews.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 10 MiB |
Binary file not shown.
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 100 KiB |
Loading…
x
Reference in New Issue
Block a user