From 26622384e70e52ef3519120f39edbb3ab7919507 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Sun, 30 Oct 2022 11:04:42 -0700 Subject: [PATCH] Add Templates for Climate Change Times --- packages/climate/climate.yaml | 16 +++++++- packages/presence/presence.yaml | 69 --------------------------------- 2 files changed, 14 insertions(+), 71 deletions(-) diff --git a/packages/climate/climate.yaml b/packages/climate/climate.yaml index ac1f27c..8a31436 100644 --- a/packages/climate/climate.yaml +++ b/packages/climate/climate.yaml @@ -51,6 +51,18 @@ input_number: max: 90 step: 1 +input_datetime: + hvac_start_day: + name: HVAC Daytime Start + initial: '10:00' + has_date: false + has_time: true + hvac_start_night: + name: HVAC Nighttime Start + initial: '20:00' + has_date: false + has_time: true + template: binary_sensor: - name: HVAC Fan Running @@ -133,7 +145,7 @@ automation: mode: queued trigger: - platform: time - at: "20:00" + at: "{{ states('input_datetime.hvac_start_night') }}" action: - service: climate.set_temperature target: @@ -146,7 +158,7 @@ automation: mode: queued trigger: - platform: time - at: "10:00" + at: "{{ states('input_datetime.hvac_start_day') }}" action: - service: climate.set_temperature target: diff --git a/packages/presence/presence.yaml b/packages/presence/presence.yaml index 5b1164c..ef48b4f 100644 --- a/packages/presence/presence.yaml +++ b/packages/presence/presence.yaml @@ -14,47 +14,6 @@ homeassistant: sensor.jp_presence_status: entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928 - # device_tracker.jp_p3a_gps: - # friendly_name: J.P. Pixel 3a - # icon: mdi:map-marker - # device_tracker.jp_p3a_ip: - # friendly_name: J.P. Pixel 3a - # icon: mdi:wifi - # device_tracker.jp_p3a_bt_entry: - # friendly_name: J.P. Pixel 3a - # source_type: bluetooth - # icon: mdi:bluetooth - - # device_tracker.jp_gs8_ap: - # friendly_name: J.P. Galaxy S8 - # icon: mdi:wifi - - # device_tracker.jen_iphone_ip: - # friendly_name: Jen iPhone - # icon: mdi:wifi - # device_tracker.jen_iphone_bt_entry: - # friendly_name: Jen iPhone - # source_type: bluetooth - # icon: mdi:bluetooth - -# ----------------------------------------------------------------------------- -# Manual Setup Device Trackers -# device_tracker: - -# # Ping Platform -# - platform: ping -# hosts: -# jp_p3a_ip: !secret jp_p3a_ip -# jp_gs8_ip: !secret jp_gs8_ip -# jen_iphone_ip: !secret jen_iphone_ip - -# # MQTT Platform (Bluetooth Presence Sensor) -# - platform: mqtt -# devices: -# jp_gs8_bt_entry: monitor/entry/jp_gs8/device_tracker -# jp_p3a_bt_entry: monitor/entry/jp_p3a/device_tracker -# jen_iphone_bt_entry: monitor/entry/jen_iphone/device_tracker - # ----------------------------------------------------------------------------- # Proximity Sensors for Zones proximity: @@ -156,34 +115,6 @@ sensor: # Automations for Presence Detection automation: - # Run Bluetooth Arrival Scan at Home Assistant startup - # - alias: Startup Arrival Scan - # trigger: - # - platform: homeassistant - # event: start - # mode: queued - # action: - # - service: mqtt.publish - # data: - # topic: monitor/scan/arrive - # payload: scan - - # Run Bluetooth Departure Scan if a Ping Device Tracker goes Away - # - alias: Bluetooth Departure Scan - # trigger: - # - platform: homeassistant - # event: start - # - platform: state - # entity_id: binary_sensor.front_door_sensor - # - platform: time_pattern - # minutes: "/10" - # mode: single - # action: - # - service: mqtt.publish - # data: - # topic: monitor/scan/depart - # payload: scan - # Handle Just Arrived/Just Left State Transitions - alias: Mark Person as Just Arrived trigger: