Skip to content

Commit

Permalink
More Moar
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegordon committed Jul 7, 2024
1 parent 15c0a1b commit d66c251
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ blueprint:
description: Set BT Thermostats to Away mode if house is unoccupied.
domain: automation
# source_url:
# https://github.com/KartoffelToby/better_thermostat/blob/master/blueprints/away_mode.yaml
# https://github.com/KartoffelToby/better_thermostat/blob/master/blueprints/away_mode.yaml
input:
occupancy_sensor:
name: Occupancy
Expand Down
3 changes: 2 additions & 1 deletion esphome/hot_tank_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ output:
- platform: esp8266_pwm
id: blue_led
pin: D5 # Nothing is really connected to D5.
# The built-in blue LED is connected to D4, but I stupidly picked that for I2C and don't want to change it.
# The built-in blue LED is connected to D4,
# but I stupidly picked that for I2C and don't want to change it.
inverted: true

light:
Expand Down
2 changes: 2 additions & 0 deletions esphome/tin_hut_door_left.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ logger:
# lambda: !lambda |-
# return true;
# turn_on_action:
# yamllint disable rule:line-length
# - lambda: !lambda |-
# ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir));
# turn_off_action:
# - lambda: !lambda |-
# ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir));
# yamllint enable rule:line-length
2 changes: 2 additions & 0 deletions esphome/tin_hut_door_right.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ logger:
# lambda: !lambda |-
# return true;
# turn_on_action:
# yamllint disable rule:line-length
# - lambda: !lambda |-
# ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir));
# turn_off_action:
# - lambda: !lambda |-
# ESP_LOGD("log_it", "LOG CO:%u PO:%f LD:%u", id(garage_door).current_operation, id(garage_door).position, id(last_dir));
# yamllint enable rule:line-length
12 changes: 10 additions & 2 deletions packages/device_alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,23 @@ automation:
condition: and
conditions:
- condition: template
# yamllint disable rule:line-length
value_template: >
{% if states.automation.alert_when_a_critical_device_goes_offline.last_triggered is not none %}
{% if as_timestamp(now()) | int - as_timestamp(states.automation.alert_when_a_critical_device_goes_offline.attributes.last_triggered) | int > 3600 %} true {% else %} false
{% if as_timestamp(now()) | int - as_timestamp(states.automation.alert_when_a_critical_device_goes_offline.attributes.last_triggered) | int > 3600 %}
true
{% else %}
false
{% endif %}
{% else %}
false
{% endif %}
# yamllint enable rule:line-length
action:
- service: notify.email_kyle
data_template:
message: '{{trigger.to_state.attributes.friendly_name}} has gone offline. Please check the status of this device as some features may stop functioning.'
message: >
'{{trigger.to_state.attributes.friendly_name}} has gone offline.
Please check the status of this device
as some features may stop functioning.'
title: Device Alert
3 changes: 2 additions & 1 deletion packages/hallway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ input_number:

automation:
- alias: Hallway light toggle
# Can be improved, examples at https://github.com/TheFes/HA-configuration/blob/main/include/automation/01_first_floor/floris/shelly_floris.yaml
# Can be improved, examples at
# https://github.com/TheFes/HA-configuration/blob/main/include/automation/01_first_floor/floris/shelly_floris.yaml
trigger:
- platform: event
event_type: esphome.button_pressed
Expand Down

0 comments on commit d66c251

Please sign in to comment.