diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index b6e21b28..bf568b2c 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -153,13 +153,12 @@ automation: "#SmartHomeCode" ] %} {{ phrases|random ~ " " ~ hashtags|random }} - data_template: - media: >- - {% set pictures = [ - "/config/www/custom_ui/floorplan/images/repo_ad.png", - "/config/www/custom_ui/floorplan/images/repo_ad2.png" - ] %} - {{ pictures|random }} + image: >- + {% set pictures = [ + "/config/www/custom_ui/floorplan/images/repo_ad.png", + "/config/www/custom_ui/floorplan/images/repo_ad2.png" + ] %} + {{ pictures|random }} - alias: 'Random House stats' hide_entity: True diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index 56e09c14..a5459c54 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -19,7 +19,7 @@ tweet_engine: {{ tweet }} #IOT #SmartHome data: media: >- - {{ media }} + {{ image }} # - service: ifttt.trigger # data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}