2018-03-18 00:49:16 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2020-06-06 22:13:19 +00:00
|
|
|
# Read more about the house at https://vCloudInfo.com
|
2018-03-18 00:49:16 +00:00
|
|
|
#-------------------------------------------
|
2020-06-06 22:13:19 +00:00
|
|
|
|
2018-03-18 00:49:16 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
sensor:
|
|
|
|
- platform: travisci
|
2020-07-21 17:08:16 +00:00
|
|
|
api_key: !secret travisci_api
|
2018-03-18 00:49:16 +00:00
|
|
|
scan_interval: 2400
|
2018-03-18 01:14:50 +00:00
|
|
|
monitored_conditions:
|
|
|
|
- state
|
2018-03-18 00:49:16 +00:00
|
|
|
#-------------------------------------------
|
2020-06-06 22:13:19 +00:00
|
|
|
|
2018-03-18 00:49:16 +00:00
|
|
|
#automation:
|
|
|
|
#Tweets pushed out to twitter.
|
2018-03-18 01:27:15 +00:00
|
|
|
|
|
|
|
automation:
|
|
|
|
- alias: "Travis FAILURE Notification"
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 326881a7-47ab-4897-a0c7-74ce290224de
|
2020-07-21 17:08:16 +00:00
|
|
|
mode: restart
|
2020-06-06 22:13:19 +00:00
|
|
|
|
2018-03-18 01:27:15 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2020-07-21 17:08:16 +00:00
|
|
|
- sensor.ccostan_home_assistantconfig_state
|
2018-03-18 01:27:15 +00:00
|
|
|
to: 'failed'
|
2020-07-21 14:49:57 +00:00
|
|
|
for:
|
|
|
|
hours: 2
|
2020-07-21 17:08:16 +00:00
|
|
|
|
2018-03-18 01:27:15 +00:00
|
|
|
action:
|
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
|
|
|
value1: 'Travis validation testing failed.'
|
|
|
|
who: 'carlo'
|
2020-07-21 14:49:57 +00:00
|
|
|
apns: 'information'
|
2018-03-18 01:27:15 +00:00
|
|
|
|
|
|
|
- service: persistent_notification.create
|
|
|
|
data:
|
|
|
|
title: "Travis-CI FAILURE"
|
|
|
|
message: "Travis validation testing failed."
|
|
|
|
notification_id: "travis_failed"
|