From 7c2976cb8ec569f3584fe8717d10643be48a2bb1 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sat, 17 Mar 2018 21:27:15 -0400 Subject: [PATCH] Closes #330 - Travis sesonr and automation --- config/packages/travis.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/config/packages/travis.yaml b/config/packages/travis.yaml index 19df886d..bb972e18 100755 --- a/config/packages/travis.yaml +++ b/config/packages/travis.yaml @@ -17,9 +17,34 @@ sensor: monitored_conditions: - state #------------------------------------------- -# Group added to network package. +# Group added to network package. ############################################################################## ### Automations - Detect when things are not right. Like any Good Watchdog. ############################################################################## #automation: #Tweets pushed out to twitter. + +automation: + - alias: "Travis FAILURE Notification" + hide_entity: True + trigger: + - platform: state + entity_id: + - sensor.ccostanhomeassistantconfig_state + to: 'failed' + action: + - service: script.notify_engine + data_template: + value1: 'Travis validation testing failed.' + who: 'carlo' + + - service: notify.html5 + data_template: + title: "Travis-CI FAILURE" + message: "Travis validation testing failed." + + - service: persistent_notification.create + data: + title: "Travis-CI FAILURE" + message: "Travis validation testing failed." + notification_id: "travis_failed"