Skip to content

Instantly share code, notes, and snippets.

alias: Select input to timed output
description: ""
trigger:
- platform: state
id: button
entity_id:
- input_select.ztest_1_to_5
not_from:
- unavailable
- platform: event
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.pump
condition:
action:
- variables:
on_time: "00:15:00"
off_time: "00:30:00"
@Didgeridrew
Didgeridrew / saving_actionable_reply.yaml
Last active March 2, 2023 22:05
HA - sending Mobile Actionable Notification and saving reply and timestamp to calendar event
#REPLY and BUTTONS -----------------------------
alias: Benj egg text
description: ""
trigger:
- platform: time
at: "07:30:00"
condition: []
action:
- alias: Set up variables for the actions
variables:
@Didgeridrew
Didgeridrew / populate_trash_nights.yaml
Last active May 18, 2025 17:45
HA - Create calendar events for all trash nights
##############################################################
# All-Day Events for Food Waste Collection
# Collection every Wed from April 1 - Nov
# Collection every other Wed Nov- Apr (skipping first week in Nov)
#
# Designed to be run annually on Apr 1
#############################################################
alias: Set Food Waste Calendar Dates
@Didgeridrew
Didgeridrew / driveway_media.yaml
Last active December 29, 2022 16:22
HA - Driveway media automation for Mike
- alias: test1
trigger:
platform: state
entity_id:
- binary_sensor.driveway_beem
to: 'on'
condition:
- condition: template
value_template: '{{ (as_timestamp(now()) - as_timestamp(states.automation.driveway_linecrossing_mp3.attributes.last_triggered | default(0)) | int > 200)}}'
action:
alias: Phone charging 78
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.pro_max_battery_level
above: 78
condition: []
action:
- service: switch.turn_off
data: {}
@Didgeridrew
Didgeridrew / light_w_timer.yaml
Created November 30, 2022 11:32
HA - Basic Light with timer to turn it off
alias: Lights - GE RF Pucks + Time
description: ""
trigger:
- platform: event
id: timer
event_type: timer.finished
event_data:
entity_id: timer.ge_puck_light_timer
- platform: state
entity_id: light.ge_rf_puck_lights
@Didgeridrew
Didgeridrew / dropping_batt_notification.yaml
Last active November 29, 2022 11:39
HA - Notify Battery percentage every 10% drop below 90
alias: Low Battery Notification
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.battery_level
below: 1
value_template: "{{ state.state|int % 10 }}"
condition:
- condition: numeric_state
entity_id: sensor.battery_level
@Didgeridrew
Didgeridrew / oed_word_of_the_day.yaml
Created November 8, 2022 10:30
HA: English Word of the Day using RSS
#####################################################################
# This sensor relies on the feedparser custom component:
# https://github.com/custom-components/feedparser
#####################################################################
sensor:
- platform: feedparser
name: OED Word of the Day
feed_url: "http://www.oed.com/rss/wordoftheday"
date_format: "%a, %b %d %H:%M:%S %z"
@Didgeridrew
Didgeridrew / palabra_del_dia.yaml
Last active November 8, 2022 10:28
HA: Spanish Word of the Day from RSS feed
#####################################################################
# This sensor relies on the feedparser custom component:
# https://github.com/custom-components/feedparser
#####################################################################
sensor:
- platform: feedparser
name: Free Dictionary Spanish WOD
feed_url: "https://es.thefreedictionary.com/_/WoD/rss.aspx?type=es_wod"
scan_interval: