From 905886274e48f67dd75dc932b7409772d4752ff1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 5 Oct 2020 12:00:59 -0400 Subject: [PATCH] addeding images to Halloween countdown tweet --- config/packages/twitter.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 89c68f6..c608db6 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -244,18 +244,26 @@ automation: {%- endif -%} 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_notify_image data_template: message: >- {{ [ "There are only {{states.sensor.halloween_countdown.state}} days until Halloween.", "Halloween is only {{states.sensor.halloween_countdown.state}} days away. It might not be enough time. ", "Halloween is coming. {{states.sensor.halloween_countdown.state}} days and counting.", "Only {{states.sensor.halloween_countdown.state}} days until Halloween.", - "You have {{states.sensor.halloween_countdown.state}} days until you need a costume.", + "You have {{states.sensor.halloween_countdown.state}} days until you need a Halloween costume.", "Only {{states.sensor.halloween_countdown.state}} days until Halloween. But who is counting. amirite?", "Would it be cliche if I went as a haunted house for Halloween? Asking for a another house.", "Just in case I wanted to be HAL 9000 for Halloween I ordered some Pod Bay Doors." ] | random }} + image: >- + {{ [ "/config/www/tweet_images/halloween/potion.jpg", + "/config/www/tweet_images/halloween/Halloween-house.jpg", + "/config/www/tweet_images/halloween/halloween.gif", + "/config/www/tweet_images/halloween/halloween.jpg", + "/config/www/tweet_images/halloween/halloween2.jpg", + "/config/www/tweet_images/halloween/halloween3.jpg", + "/config/www/tweet_images/halloween/Halloweenpumpkins.jpg"] | random }} - id: Christmas Countdown Tweet alias: Christmas Countdown Tweet