Add Templates for Climate Change Times

This commit is contained in:
2022-10-30 11:04:42 -07:00
parent 6e5eddc243
commit 26622384e7
2 changed files with 14 additions and 71 deletions

View File

@@ -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:

View File

@@ -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: