Created
September 12, 2023 23:17
-
-
Save sgraham/81b3c795e820bbe0c58900903c07ef31 to your computer and use it in GitHub Desktop.
google home automation for hydro pump on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------------------ # | |
# Lines starting with “#” are comments and will be ignored by the automation. | |
# Indentation determines hierarchy within the script. | |
# Visit g.co/home/script-editor-docs for full documentation. | |
# ------------------------------------------------------------------------------------------ # | |
metadata: | |
name: Hydro pump on # Choose a short name that summarizes important starters and actions, like “Sunset lights”. | |
description: Turns hydroponic pump on every 30 minutes | |
automations: | |
# “starters” and “actions” are required; “conditions” are optional. | |
# Use Ctrl + Space to see autocomplete suggestions. | |
# ---- STARTERS ---- # | |
# Starters describe events that will start the automation. | |
# To add more than one starter, duplicate the "- type" section under "starters". | |
# If you add multiple starter events, any one of them happening will start the automation. | |
starters: | |
- type: time.schedule | |
at: 00:00 | |
- type: time.schedule | |
at: 01:00 | |
- type: time.schedule | |
at: 02:00 | |
- type: time.schedule | |
at: 03:00 | |
- type: time.schedule | |
at: 04:00 | |
- type: time.schedule | |
at: 05:00 | |
- type: time.schedule | |
at: 06:00 | |
- type: time.schedule | |
at: 07:00 | |
- type: time.schedule | |
at: 08:00 | |
- type: time.schedule | |
at: 09:00 | |
- type: time.schedule | |
at: 10:00 | |
- type: time.schedule | |
at: 11:00 | |
- type: time.schedule | |
at: 12:00 | |
- type: time.schedule | |
at: 13:00 | |
- type: time.schedule | |
at: 14:00 | |
- type: time.schedule | |
at: 15:00 | |
- type: time.schedule | |
at: 16:00 | |
- type: time.schedule | |
at: 17:00 | |
- type: time.schedule | |
at: 18:00 | |
- type: time.schedule | |
at: 19:00 | |
- type: time.schedule | |
at: 20:00 | |
- type: time.schedule | |
at: 21:00 | |
- type: time.schedule | |
at: 22:00 | |
- type: time.schedule | |
at: 23:00 | |
- type: time.schedule | |
at: 00:30 | |
- type: time.schedule | |
at: 01:30 | |
- type: time.schedule | |
at: 02:30 | |
- type: time.schedule | |
at: 03:30 | |
- type: time.schedule | |
at: 04:30 | |
- type: time.schedule | |
at: 05:30 | |
- type: time.schedule | |
at: 06:30 | |
- type: time.schedule | |
at: 07:30 | |
- type: time.schedule | |
at: 08:30 | |
- type: time.schedule | |
at: 09:30 | |
- type: time.schedule | |
at: 10:30 | |
- type: time.schedule | |
at: 11:30 | |
- type: time.schedule | |
at: 12:30 | |
- type: time.schedule | |
at: 13:30 | |
- type: time.schedule | |
at: 14:30 | |
- type: time.schedule | |
at: 15:30 | |
- type: time.schedule | |
at: 16:30 | |
- type: time.schedule | |
at: 17:30 | |
- type: time.schedule | |
at: 18:30 | |
- type: time.schedule | |
at: 19:30 | |
- type: time.schedule | |
at: 20:30 | |
- type: time.schedule | |
at: 21:30 | |
- type: time.schedule | |
at: 22:30 | |
- type: time.schedule | |
at: 23:30 | |
# ---- ACTIONS ---- # | |
# Actions will start when a starter event takes place and all conditions are met. | |
# Actions will start in the order they appear in the script and with any delay specified. | |
# To add more than one action, duplicate the "- type" section under "actions". | |
actions: | |
- type: device.command.OnOff # Turn the device on or off. | |
on: true | |
devices: Hydro Pump - Office |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment