This commit is contained in:
ccostan 2018-03-13 16:18:27 -04:00
parent 010d156886
commit 260290e4b6
4 changed files with 11 additions and 9 deletions

View File

@ -6,14 +6,8 @@ homeassistant:
unit_system: imperial
time_zone: America/New_York
whitelist_external_dirs:
- /config/www/custom_ui
- /config/www/custom_ui/floorplan/images
# { "message": "Photo Tweet",
# "data": {
# "media": "/config/www/custom_ui/Measurements.jpg"
# }
#
customize: !include_dir_merge_named customize
customize_domain:
automation:

View File

@ -146,7 +146,7 @@ automation:
{% set issue = trigger.event.data.issue %}
{% set issueurl = trigger.event.data.issueurl %}
{% set phrases = [
"New Code Alert: " ~ issue ~ "(" ~ issueurl ~ "). Repo: (https://github.com/CCOSTAN/Home-AssistantConfig/commits/master) "
"New Code Available: " ~ issue ~ " " ~ issueurl
] %}
{% set hashtags = [
"#Github",
@ -154,7 +154,13 @@ 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 }}
- alias: 'Random House stats'
hide_entity: True

View File

@ -17,6 +17,8 @@ tweet_engine:
data_template:
message: >-
{{ tweet }} #IOT #SmartHome
data:
media: {{ media }}
# - service: ifttt.trigger
# data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 KiB