From ad8273cded6c3a84fa85dbf93a29f7f30c652ef0 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sat, 17 Mar 2018 21:14:50 -0400 Subject: [PATCH] More image updating. --- config/automation/System/Self_heal.yaml | 2 +- config/packages/fitbit.yaml | 2 +- config/packages/holiday.yaml | 6 +++++- config/packages/juicenet.yaml | 5 ++--- config/packages/network.yaml | 1 + config/packages/travis.yaml | 9 +++------ config/packages/twitter.yaml | 27 +------------------------ config/script/tweet.yaml | 7 ++++--- 8 files changed, 18 insertions(+), 41 deletions(-) diff --git a/config/automation/System/Self_heal.yaml b/config/automation/System/Self_heal.yaml index 3597eea6..673f8809 100755 --- a/config/automation/System/Self_heal.yaml +++ b/config/automation/System/Self_heal.yaml @@ -13,7 +13,7 @@ - service: homeassistant.turn_on entity_id: switch.bedroom_restart_on - - service: script.tweet_engine + - service: script.tweet_engine_image data_template: tweet: >- {{ [ diff --git a/config/packages/fitbit.yaml b/config/packages/fitbit.yaml index 4671a2a6..82762cac 100755 --- a/config/packages/fitbit.yaml +++ b/config/packages/fitbit.yaml @@ -69,7 +69,7 @@ automation: true {%- endif -%} action: - - service: script.tweet_engine + - service: script.tweet_engine_image data_template: tweet: > {{ [ diff --git a/config/packages/holiday.yaml b/config/packages/holiday.yaml index 9d226b3c..dfb2faed 100755 --- a/config/packages/holiday.yaml +++ b/config/packages/holiday.yaml @@ -75,7 +75,7 @@ automation: title: '{{ states.sensor.holiday.state }}' - delay: '{{ (range(4, 8)|random|int) }}:{{ (range(1, 50)|random|int) }}:00' - - service: script.tweet_engine + - service: script.tweet_engine_image data_template: tweet: > {{ [ @@ -89,3 +89,7 @@ automation: "(http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)", "#{{ states.sensor.holiday.state }}" ] | random }} + image: >- + {{ [ + "/config/www/custom_ui/floorplan/images/branding/light4.png" + ] | random }} diff --git a/config/packages/juicenet.yaml b/config/packages/juicenet.yaml index a755eca4..1d0ddeff 100755 --- a/config/packages/juicenet.yaml +++ b/config/packages/juicenet.yaml @@ -71,7 +71,7 @@ automation: from: 'charging' action: - delay: '0{{ range(0,4) | random | int }}:00:00' - - service: script.tweet_engine + - service: script.tweet_engine_image data_template: tweet: > {{ [ @@ -84,6 +84,5 @@ automation: "/config/www/custom_ui/floorplan/images/branding/car.png", "/config/www/custom_ui/floorplan/images/branding/bear_stone_car.png", "/config/www/custom_ui/floorplan/images/branding/batteries.png", - "/config/www/custom_ui/floorplan/images/branding/charge.png", - + "/config/www/custom_ui/floorplan/images/branding/charge.png" ] | random }} diff --git a/config/packages/network.yaml b/config/packages/network.yaml index 1bdb15cf..fc112522 100755 --- a/config/packages/network.yaml +++ b/config/packages/network.yaml @@ -73,6 +73,7 @@ group: network: entities: - sensor.ha_installed_version + - sensor.ccostanhomeassistantconfig_state - sensor.ha_uptime - sensor.since_last_boot_templated - sensor.disk_use_percent_ diff --git a/config/packages/travis.yaml b/config/packages/travis.yaml index f0da4945..19df886d 100755 --- a/config/packages/travis.yaml +++ b/config/packages/travis.yaml @@ -14,13 +14,10 @@ sensor: - platform: travisci api_key: !secret travis_api scan_interval: 2400 + monitored_conditions: + - state #------------------------------------------- -# group: -# finance: -# entities: -# - sensor.tesla -# - sensor.bitcoin - +# Group added to network package. ############################################################################## ### Automations - Detect when things are not right. Like any Good Watchdog. ############################################################################## diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 5d269c74..b8a48ba1 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -107,31 +107,6 @@ automation: media_content_id: "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/twitter-chirp.mp3" media_content_type: audio/mp4 - # - service: script.tweet_engine - # data_template: - # tweet: >- - # {% set handle = trigger.event.data.value1 %} - # {% set location = trigger.event.data.location %} - # {% set phrases = [ - # "Thanks for the Follow " ~ handle ~ "! Chirp the Bird from " ~ location ~ "!!", - # "Hey " ~ handle ~ "! Thanks for the Follow from " ~ location ~ " !", - # "Sending a #Chirp to " ~ handle ~ " in " ~ location ~ "!", - # "New follower " ~ handle ~ " from " ~ location ~ ", I just sounded a chirp in the house.", - # "Boom! The " ~ location ~ " follow from " ~ handle ~ " makes me sound a chirp in the house.", - # "Wanna know who is super cool? "~ handle ~" IS!!! Thanks for making me CHIRP!", - # "If the AMP (http://amzn.to/2j18dlT) is on & I get a new follower like " ~ handle ~ ", I sound a chirp!" - # ] %} - # {% set hashtags = [ - # "#ThanksForTheFollow", - # "#FollowBack", - # "#ChirpTheHouse", - # "#FollowMe", - # "#MakingitChirp", - # "(http://www.vmwareinfo.com/2017/12/giving-house-twitter-account.html)", - # "(http://www.vmwareinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)" - # ] %} - # {{ phrases|random ~ " " ~ hashtags|random }} - - alias: 'Closed Github Issue' hide_entity: True trigger: @@ -184,7 +159,7 @@ automation: {% set pick = [ "minecraft", "solar", "solar", - "robot", "robot","robot","robot","robot","robot","robot","robot", + "robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot", "robot", "door", "door", "door", "weather", "weather", "weather", "weather", "weather", "weather", "internet", "internet", "internet", "internet", "internet", diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index 933878c0..2c054bd1 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -28,8 +28,9 @@ tweet_engine_setup: "The #Docker Host has been running for {{ states('sensor.since_last_boot_templated') }} (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)", "The #Docker Host for Home Assistant is using {{ states('sensor.disk_use_percent_') }}% of the hard drive currently. (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)", "My Home Assistant Database is currently using {{ states('sensor.database_sensor') }} MBs. To get this #Stat for your HA, visit (https://github.com/robmarkcole/HASS-filesize-sensor)", - "I am running Home Assistant version {{ states('sensor.ha_installed_version') }} (https://github.com/CCOSTAN/Home-AssistantConfig)", - "Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig)" + "I am running Home Assistant version {{ states('sensor.ha_installed_version') }} (https://github.com/CCOSTAN/Home-AssistantConfig#logo)", + "Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)", + "My Home Assistant has been tested by Travis-CI and {{states('sensor.ccostanhomeassistantconfig_state')}}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ], "door": [ @@ -87,7 +88,7 @@ tweet_engine_setup: "/config/www/custom_ui/floorplan/images/branding/batteries.png", "/config/www/custom_ui/floorplan/images/branding/car.png", "/config/www/custom_ui/floorplan/images/branding/bear_stone_car.png", - "/config/www/custom_ui/floorplan/images/branding/charge.png", + "/config/www/custom_ui/floorplan/images/branding/charge.png", ], "robot": [