mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-28 00:51:38 +00:00
Reminded by @pinkywafer to bring back my Travis sensors and notifications. https://github.com/pinkywafer/Home-Assistant_Config/issues/17
This commit is contained in:
42
config/packages/travis.yaml
Executable file
42
config/packages/travis.yaml
Executable file
@@ -0,0 +1,42 @@
|
||||
#-------------------------------------------
|
||||
# @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"
|
||||
id: 326881a7-47ab-4897-a0c7-74ce290224de
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.ccostanhomeassistantconfig_state
|
||||
to: 'failed'
|
||||
for:
|
||||
hours: 2
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
value1: 'Travis validation testing failed.'
|
||||
who: 'carlo'
|
||||
apns: 'information'
|
||||
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
title: "Travis-CI FAILURE"
|
||||
message: "Travis validation testing failed."
|
||||
notification_id: "travis_failed"
|
Reference in New Issue
Block a user