mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 08:50:34 +00:00
Moving some twitter stuff around...dont mind me
This commit is contained in:
@@ -63,7 +63,7 @@ automation:
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
action:
|
||||
- service: script.twitter_notify
|
||||
- service: script.twitter_iss
|
||||
data_template:
|
||||
message: >-
|
||||
{{ [
|
||||
@@ -71,10 +71,6 @@ automation:
|
||||
"The #ISS just flew by with there are {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people doing cool stuff. #Space #theycanseeourhouse",
|
||||
"The #ISS just flew by with {{states.binary_sensor.iss.attributes.number_of_people_in_space}} people in it. #Space #theycanseeourhouse"
|
||||
] | random }}
|
||||
data:
|
||||
media: >-
|
||||
{{ [ "/config/www/tweet_images/iss.jpg",
|
||||
"/config/www/tweet_images/iss2.jpg"] | random }}
|
||||
|
||||
- id: iss_notification
|
||||
initial_state: true
|
||||
@@ -100,12 +96,11 @@ automation:
|
||||
to: 'full_moon'
|
||||
action:
|
||||
- delay: '0{{ (range(1, 5)|random|int) }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
||||
- service: script.twitter_notify
|
||||
- service: script.twitter_full_moon
|
||||
data_template:
|
||||
message: >-
|
||||
{{ [
|
||||
"There is a Full Moon out tonight, and this time it's the actual moon and not the neighbor. ",
|
||||
"Hey look kids, There's the full moon. ",
|
||||
"The moon is huge! And full. "] | random + "#Space #fullmoon"}}
|
||||
data:
|
||||
media: /config/www/tweet_images/full_moon.jpg
|
||||
|
||||
|
Reference in New Issue
Block a user