2019-04-17 22:46:06 +00:00
|
|
|
homeassistant:
|
|
|
|
customize:
|
|
|
|
binary_sensor.dining_room_thermostat_fan:
|
|
|
|
friendly_name: Thermostat Fan
|
|
|
|
binary_sensor.dining_room_thermostat_has_leaf:
|
|
|
|
friendly_name: Thermostat has Leaf
|
|
|
|
binary_sensor.dining_room_thermostat_is_locked:
|
|
|
|
friendly_name: Thermostat is Locked
|
|
|
|
binary_sensor.dining_room_thermostat_is_using_emergency_heat:
|
|
|
|
friendly_name: Thermostart Emergency Heat
|
|
|
|
binary_sensor.dining_room_thermostat_online:
|
|
|
|
friendly_name: Thermostat Online
|
2020-03-15 23:42:44 +00:00
|
|
|
|
2019-04-17 22:46:06 +00:00
|
|
|
sensor.dining_room_thermostat_humidity:
|
|
|
|
friendly_name: Thermostat Humidity
|
|
|
|
sensor.dining_room_thermostat_hvac_state:
|
|
|
|
friendly_name: Thermostat HVAC State
|
|
|
|
sensor.dining_room_thermostat_operation_mode:
|
|
|
|
friendly_name: Thermostat Operation Mode
|
|
|
|
sensor.dining_room_thermostat_target:
|
|
|
|
friendly_name: Thermostat Target
|
|
|
|
sensor.dining_room_thermostat_temperature:
|
|
|
|
friendly_name: Thermostat Temperature
|
|
|
|
|
|
|
|
nest:
|
|
|
|
client_id: !secret nest_client_id
|
|
|
|
client_secret: !secret nest_client_secret
|
|
|
|
|
|
|
|
###############################################################################
|
2020-03-15 23:42:44 +00:00
|
|
|
# _ _ _
|
|
|
|
# /\ | | | | (_)
|
|
|
|
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
|
2019-04-17 22:46:06 +00:00
|
|
|
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
|
|
|
|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
|
|
|
|
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
|
2020-03-15 23:42:44 +00:00
|
|
|
#
|
2019-04-17 22:46:06 +00:00
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
automation:
|
2020-03-15 23:42:44 +00:00
|
|
|
###############################################################################
|
|
|
|
# Nest Thermostat automatically changes based on activity at home.
|
|
|
|
# This automation is to keep an eye on what's going on with Nest
|
|
|
|
###############################################################################
|
2019-04-17 22:46:06 +00:00
|
|
|
- alias: Notify Thermostat State Change
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.dining_room_thermostat_operation_mode
|
|
|
|
action:
|
2022-12-03 16:28:12 +00:00
|
|
|
- service: script.notify_family
|
2022-12-05 00:02:34 +00:00
|
|
|
data:
|
2019-04-17 22:46:06 +00:00
|
|
|
message: "Nest Thermostat changed from '{{ trigger.from_state.state }}' to '{{ trigger.to_state.state }}'."
|
2022-12-03 16:28:12 +00:00
|
|
|
notify_options:
|
|
|
|
- telegram
|
|
|
|
- tv
|
|
|
|
- led
|
|
|
|
- voice
|
2022-12-04 17:38:48 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
###############################################################################
|
|
|
|
# A script that toggles Nest Thermostat between eco/away & non-eco/away modes
|
|
|
|
###############################################################################
|
|
|
|
toggle_climate:
|
|
|
|
sequence:
|
|
|
|
- service: climate.set_away_mode
|
2022-12-05 00:02:34 +00:00
|
|
|
data:
|
2022-12-04 17:38:48 +00:00
|
|
|
entity_id: climate.dining_room
|
|
|
|
away_mode: "{{ false if state_attr('climate.dining_room', 'away_mode') == 'on' else true }}"
|