Skip to content

Instantly share code, notes, and snippets.

@CyanAutomation
Last active December 30, 2020 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CyanAutomation/c5e19814a4f5000b2a12162a24fc19da to your computer and use it in GitHub Desktop.
Save CyanAutomation/c5e19814a4f5000b2a12162a24fc19da to your computer and use it in GitHub Desktop.
Running A Daily Internet Speed Test Using A Home Assistant Blueprint
blueprint:
name: Running A Daily Internet Speed Test
description: This automation schedules and runs an internet speed test, at a convenient time just once a day. Note that you will need to have the Speedtest integration installed, and most importantly, and set to Disable auto update.
domain: automation
input:
# Capture a time to run the automation
run_time:
name: Test Run Time
description: This is the time that the speed test will run each day
# Use a selector, to pick the scheduled time
selector:
time: {}
# Provide a default value
default: "23:30:00"
# Prevent the automation from running concurrently
mode: single
# Define the variables used in the action section
variables:
run_time: !input run_time
# Define the trigger for the automation
trigger:
# Using the defined time as the trigger
platform: time
at: !input run_time
# This section will take action and run the relevant service
action:
- service: speedtestdotnet.speedtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment