2018-01-02 00:00:45 +00:00
- alias : "Update Available Notification"
hide_entity : True
trigger :
platform : state
entity_id : updater.updater
condition :
- condition : template
value_template : "{{ states('updater.updater') != 'unknown' }}"
action :
- service : script.notify_engine
data_template :
2018-05-30 21:18:59 +00:00
value1 : "Home Assistant {{ states.updater.updater.state }} is now available. {{now().strftime('%Y-%m-%d %I:%M %p')}}"
2018-01-02 00:00:45 +00:00
who : 'carlo'
2018-05-30 21:18:59 +00:00
- service : ifttt.trigger
data_template : {"event" : "GitPost" , "value1" : "Home Assistant {{ states.updater.updater.state }} is now available." , "value2" : "{{ states.updater.updater.state }}" }
2018-03-31 18:36:07 +00:00
- service : script.tweet_engine_image
data_template :
2018-01-02 00:00:45 +00:00
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)"
2018-03-31 18:36:07 +00:00
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 }}
2018-01-02 00:00:45 +00:00
- service : notify.html5
data_template :
title : "Update Available"
message : "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
- service : persistent_notification.create
data :
title : "Update Available"
message : "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
notification_id : "update_available"