Updated to use new Network autodetect features from 2021.6

This commit is contained in:
ccostan 2021-06-12 12:49:32 -04:00
parent 2230d863b5
commit fa7406c07d
11 changed files with 171 additions and 79 deletions

View File

@ -1 +1 @@
2021.4.6
2021.6.4

View File

@ -0,0 +1,74 @@
blueprint:
name: Confirmable Notification
description: >-
A script that sends an actionable notification with a confirmation before
running the specified action.
domain: script
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
input:
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive notifications.
selector:
device:
integration: mobile_app
title:
name: "Title"
description: "The title of the button shown in the notification."
default: ""
selector:
text:
message:
name: "Message"
description: "The message body"
selector:
text:
confirm_text:
name: "Confirmation Text"
description: "Text to show on the confirmation button"
default: "Confirm"
selector:
text:
confirm_action:
name: "Confirmation Action"
description: "Action to run when notification is confirmed"
default: []
selector:
action:
dismiss_text:
name: "Dismiss Text"
description: "Text to show on the dismiss button"
default: "Dismiss"
selector:
text:
dismiss_action:
name: "Dismiss Action"
description: "Action to run when notification is dismissed"
default: []
selector:
action:
mode: restart
sequence:
- alias: "Send notification"
domain: mobile_app
type: notify
device_id: !input notify_device
title: !input title
message: !input message
data:
actions:
- action: "CONFIRM"
title: !input confirm_text
- action: "DISMISS"
title: !input dismiss_text
- alias: "Awaiting response"
wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
- choose:
- conditions: "{{ wait.trigger.event.data.action == 'CONFIRM' }}"
sequence: !input confirm_action
- conditions: "{{ wait.trigger.event.data.action == 'DISMISS' }}"
sequence: !input dismiss_action

View File

@ -27,7 +27,7 @@ homeassistant:
allow_bypass_login: true
# - type: legacy_api_password
# api_password: !secret http_password
network:
system_health:
#Note: The influxdb runs along side the HA DB. It does not replace it. influxdb is used to grab data for Grafana.
@ -36,6 +36,7 @@ influxdb:
database: home_assistant
config:
cloud:
alexa:
filter:

View File

@ -12,10 +12,6 @@ sensor:
- platform: youtube
channel_id: UC301G8JJFzY0BZ_0lshpKpQ
- platform: socialblade
name: vCloudinfo_info
channel_id: UC301G8JJFzY0BZ_0lshpKpQ
automation:
- alias: YouTube Notification - vCloudInfo
id: 4840f2ae-a0eb-497b-bf78-5e99ff28a9f0

View File

@ -62,7 +62,7 @@ tweet_engine_random:
"Your house can be a #smarthome too. All you need is #home_assistant, some time and some config files. I suggest starting with our GitHub repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"Be sure to like us on Facebook to get all post notifications (https://www.facebook.com/vcloudinfo/)",
"You can see how ALL of this is done by browsing my GitHub Repository (https://github.com/CCOSTAN/Home-AssistantConfig#logo)",
"If you are not subscribed to our YouTube channel like {{ states('sensor.vcloudinfo_info') }} others, you are missing out on the goodies! (https://youtube.com/vCloudInfo)",
"If you are not subscribed to our YouTube channel like ~5k others, you are missing out on the goodies! (https://youtube.com/vCloudInfo)",
"Join our GitHub repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo) with {{ states.sensor.github_stats.attributes.stargazers_count}} other users. Browse the {{ states.sensor.github_stats.attributes.open_issues }} #Todo items.",
"Check out my Cameo on @feinbergpaul inspiring video. (https://www.youtube.com/watch?v=5rsdwJZ0SLY&feature=youtu.be&t=85) #GoCreate #nosmallcreator ",
"Quick YouTube cameo on #HomeKit #Geeks channel. Check it out! (https://youtu.be/3tutxHO0J78?t=872) "
@ -170,7 +170,7 @@ tweet_engine_random:
"joke": [
"Visit the Repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo) ",
"Like and follow for more of these #HomeAutomation gems! ",
"Join {{ states('sensor.vcloudinfo_info') }} other subscribers and visit https://YouTube.com/vCloudInfo "
"Join ~5k other subscribers and visit https://YouTube.com/vCloudInfo "
]
} %}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 0 B