From eab420e27e9efdc1f259589dcbff2b5e1b35f975 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sat, 31 Mar 2018 14:36:07 -0400 Subject: [PATCH] Update some more image tweets. --- config/automation/System/update_notification.yaml | 12 +++++++++--- config/packages/twitter.yaml | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config/automation/System/update_notification.yaml b/config/automation/System/update_notification.yaml index 3b2e67a3..d12fb9cc 100755 --- a/config/automation/System/update_notification.yaml +++ b/config/automation/System/update_notification.yaml @@ -15,10 +15,16 @@ value2: "{{ states('updater.updater') }}" who: 'carlo' - - service: script.tweet_engine - data: + - service: script.tweet_engine_image + data_template: tweet: "New version of @Home_Assistant! Cannot wait for @CCostan to install it! - {{ states('updater.updater') }} (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)" - + image: >- + {{ [ + "/config/www/custom_ui/floorplan/images/branding/repo_ad.png", + "/config/www/custom_ui/floorplan/images/branding/repo_ad2.png", + "/config/www/custom_ui/floorplan/images/branding/repo_ad3.png", + "/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" + ] | random }} - service: notify.html5 data_template: diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 16a6e7ea..442e9f08 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -218,7 +218,8 @@ automation: {% set pictures = [ "/config/www/custom_ui/floorplan/images/branding/repo_ad.png", "/config/www/custom_ui/floorplan/images/branding/repo_ad2.png", - "/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" + "/config/www/custom_ui/floorplan/images/branding/repo_ad3.png", + "/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" ] %} {{ pictures|random }}