Lots of Spring Cleaning.

This commit is contained in:
ccostan
2020-06-06 18:13:19 -04:00
parent b7155447c9
commit cb6c5c7d6d
3 changed files with 7 additions and 41 deletions

View File

@@ -0,0 +1,38 @@
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Read more about the house at https://vCloudInfo.com
#-------------------------------------------
#-------------------------------------------
sensor:
- platform: travisci
api_key: !secret travis_api
scan_interval: 2400
monitored_conditions:
- state
#-------------------------------------------
#automation:
#Tweets pushed out to twitter.
automation:
- alias: "Travis FAILURE Notification"
trigger:
- platform: state
entity_id:
- sensor.ccostanhomeassistantconfig_state
to: 'failed'
action:
- service: script.notify_engine
data_template:
value1: 'Travis validation testing failed.'
who: 'carlo'
apns: 'travisci'
- service: persistent_notification.create
data:
title: "Travis-CI FAILURE"
message: "Travis validation testing failed."
notification_id: "travis_failed"