diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 82d1d957..e74eeb9c 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -139,7 +139,7 @@ automation: event_type: closed_github action: - - service: script.tweet_engine + - service: script.tweet_engine_image data_template: tweet: >- {% set repo = trigger.event.data.repo %} @@ -179,7 +179,7 @@ automation: - delay: '0{{ range(0,2) | random | int }}:{{ range(10,59) | random | int }}:00' - service: script.tweet_engine data_template: - tweet: > + tweet: >- {{ [ "Beep. Bop. Beep. Boop. I am a #Bot run by @CCostan", "The number of Doorbell presses yesterday was {{states.sensor.doorbell_presses.state}}", diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index fc7f6d29..b7eb509e 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -4,7 +4,7 @@ ## Enhancements by @dale3h ###################################################################################################### -tweet_engine: +tweet_engine_image: sequence: - service: mqtt.publish data_template: @@ -21,6 +21,23 @@ tweet_engine: media: >- {{image}} +tweet_engine: + sequence: + - service: mqtt.publish + data_template: + topic: 'ifttt/message' + payload: >- + {{ tweet }} + retain: true + + - service: notify.BearStoneHA + data_template: + message: >- + {{ tweet }} #IOT #SmartHome + + + + # - service: ifttt.trigger # data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"} diff --git a/config/www/custom_ui/floorplan/images/branding/repo_ad.png b/config/www/custom_ui/floorplan/images/branding/repo_ad.png index 3739b116..f97681f6 100755 Binary files a/config/www/custom_ui/floorplan/images/branding/repo_ad.png and b/config/www/custom_ui/floorplan/images/branding/repo_ad.png differ