Made changes to comply with new version. Took out HTML API information. Also
added upstairs temperature checker, and made changes to sleep light out automation. modified: configuration.yaml
This commit is contained in:
@@ -151,6 +151,25 @@
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: '{{ trigger.event.data.entity_id }}'
|
entity_id: '{{ trigger.event.data.entity_id }}'
|
||||||
|
|
||||||
|
- alias: 'Sleep - Lights Off'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: sensor.sleep_Info
|
||||||
|
to: 'startsleep'
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: group.all_lights
|
||||||
|
|
||||||
|
- alias: 'Sleep - Lights On'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: sensor.sleep_Info
|
||||||
|
to: 'stopsleep'
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id: group.all_lights
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -166,10 +185,10 @@
|
|||||||
condition: template
|
condition: template
|
||||||
value_template: "{% if not is_state('climate.home', 'off') %}true{% endif %}"
|
value_template: "{% if not is_state('climate.home', 'off') %}true{% endif %}"
|
||||||
action:
|
action:
|
||||||
- service: climate.set_away_mode
|
- service: climate.set_preset_mode
|
||||||
entity_id: climate.home
|
entity_id: climate.home
|
||||||
data:
|
data:
|
||||||
away_mode: 'on'
|
preset_mode: 'away'
|
||||||
- service: notify.notify_dan
|
- service: notify.notify_dan
|
||||||
data:
|
data:
|
||||||
title: 'Left House - Set thermostate to Away'
|
title: 'Left House - Set thermostate to Away'
|
||||||
@@ -194,10 +213,10 @@
|
|||||||
- wed
|
- wed
|
||||||
- thu
|
- thu
|
||||||
action:
|
action:
|
||||||
- service: climate.set_away_mode
|
- service: climate.set_preset_mode
|
||||||
entity_id: climate.home
|
entity_id: climate.home
|
||||||
data:
|
data:
|
||||||
away_mode: 'off'
|
preset_mode: 'home'
|
||||||
- service: notify.notify_dan
|
- service: notify.notify_dan
|
||||||
data:
|
data:
|
||||||
title: 'Left Work - Set thermostate to Home'
|
title: 'Left Work - Set thermostate to Home'
|
||||||
@@ -219,10 +238,10 @@
|
|||||||
entity_id: input_boolean.thermostat_mode
|
entity_id: input_boolean.thermostat_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: climate.set_away_mode
|
- service: climate.set_preset_mode
|
||||||
entity_id: climate.home
|
entity_id: climate.home
|
||||||
data:
|
data:
|
||||||
away_mode: 'off'
|
preset_mode: 'home'
|
||||||
- service: notify.notify_dan
|
- service: notify.notify_dan
|
||||||
data:
|
data:
|
||||||
title: 'Back Home - Set thermostate to Home'
|
title: 'Back Home - Set thermostate to Home'
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ lovelace:
|
|||||||
config:
|
config:
|
||||||
|
|
||||||
recorder:
|
recorder:
|
||||||
db_url: postgresql://ha:password@192.168.86.184/homeassistant
|
db_url: postgresql://ha:password@docker.dandev.us/homeassistant
|
||||||
purge_interval: 0
|
purge_interval: 0
|
||||||
|
|
||||||
map:
|
map:
|
||||||
@@ -35,7 +35,7 @@ map:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
# Secrets are defined in the file secrets.yaml
|
# Secrets are defined in the file secrets.yaml
|
||||||
api_password: ICYN30blah
|
#api_password: ICYN30blah
|
||||||
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
|
||||||
|
|
||||||
base_url: icyn30.duckdns.org:8123
|
base_url: icyn30.duckdns.org:8123
|
||||||
@@ -105,21 +105,21 @@ sensor:
|
|||||||
# name: 'Guest'
|
# name: 'Guest'
|
||||||
# state_topic: 'happy-bubbles/presence/ha'
|
# state_topic: 'happy-bubbles/presence/ha'
|
||||||
# away_timeout: 60
|
# away_timeout: 60
|
||||||
- platform: sonarr
|
# - platform: sonarr
|
||||||
api_key: c544cae167164f11947c84ad4e04f61c
|
# api_key: c544cae167164f11947c84ad4e04f61c
|
||||||
host: 192.168.86.20
|
# host: 192.168.86.20
|
||||||
monitored_conditions:
|
# monitored_conditions:
|
||||||
- upcoming
|
# - upcoming
|
||||||
- diskspace
|
# - diskspace
|
||||||
days: 7
|
# days: 7
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
thermostat_current_status:
|
thermostat_current_status:
|
||||||
value_template: "{{ states.climate.home.attributes.operation }}"
|
value_template: "{{ states.climate.home.attributes.hvac_action }}"
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
thermostat_away_mode:
|
thermostat_away_mode:
|
||||||
value_template: "{{ states.climate.home.attributes.away_mode }}"
|
value_template: "{{ states.climate.home.attributes.preset_mode }}"
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
thermostat_climate_mode:
|
thermostat_climate_mode:
|
||||||
@@ -129,6 +129,13 @@ sensor:
|
|||||||
thermostat_outside_temperature:
|
thermostat_outside_temperature:
|
||||||
unit_of_measurement: "°F"
|
unit_of_measurement: "°F"
|
||||||
value_template: "{{ float(states.weather.home.attributes.temperature) }}"
|
value_template: "{{ float(states.weather.home.attributes.temperature) }}"
|
||||||
|
- platform: mqtt
|
||||||
|
state_topic: "upstairstemp/sensor/temp"
|
||||||
|
name: "Upstairs Temperature"
|
||||||
|
unit_of_measurement: "°F"
|
||||||
|
- platform: mqtt
|
||||||
|
state_topic: "DansPhone/sleepinfo"
|
||||||
|
name: "sleep Info"
|
||||||
|
|
||||||
|
|
||||||
# Text to speech
|
# Text to speech
|
||||||
@@ -185,6 +192,7 @@ influxdb:
|
|||||||
- sensor.home_temperature
|
- sensor.home_temperature
|
||||||
- sensor.home_humidity
|
- sensor.home_humidity
|
||||||
- sensor.thermostat_outside_temperature
|
- sensor.thermostat_outside_temperature
|
||||||
|
- sensor.upstairs_temperature
|
||||||
- device_tracker.dan_dansphone
|
- device_tracker.dan_dansphone
|
||||||
- sensor.thermostate_current_status
|
- sensor.thermostate_current_status
|
||||||
- sensor.thermostate_climate_mode
|
- sensor.thermostate_climate_mode
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"API_KEY": "8DSRpsILZJNUIJXvSzY6C4ufrMQNQsHa", "ACCESS_TOKEN": "NYeTO1lPG1PenoI6qzYAmxUnB9e3NgRB", "REFRESH_TOKEN": "BeLlio7u4eG1itLJfolaGMTxmZeFtBlv", "AUTHORIZATION_CODE": "KFEN3CjbXBh6xUQ9zLiAPclzbp1rmxou"}
|
{"API_KEY": "8DSRpsILZJNUIJXvSzY6C4ufrMQNQsHa", "ACCESS_TOKEN": "qS1UmssoXBWOilWVfciCTToHZPmsEytp", "REFRESH_TOKEN": "zwoyduZbxOe60UQAHfnVgO8LYJfM8YK1", "AUTHORIZATION_CODE": "KFEN3CjbXBh6xUQ9zLiAPclzbp1rmxou"}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
# Use this file to store secrets like usernames and passwords.
|
# Use this file to store secrets like usernames and passwords.
|
||||||
# Learn more at https://home-assistant.io/docs/configuration/secrets/
|
# Learn more at https://home-assistant.io/docs/configuration/secrets/
|
||||||
http_password: welcome
|
#http_password: welcome
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ views:
|
|||||||
- sun.sun
|
- sun.sun
|
||||||
- sensor.home_temperature
|
- sensor.home_temperature
|
||||||
- sensor.home_humidity
|
- sensor.home_humidity
|
||||||
|
- sensor.upstairs_temperature
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
entities:
|
entities:
|
||||||
@@ -71,6 +72,8 @@ views:
|
|||||||
- automation.switch_off
|
- automation.switch_off
|
||||||
- automation.lights_on_when_home
|
- automation.lights_on_when_home
|
||||||
- automation.iftt
|
- automation.iftt
|
||||||
|
- automation.sleep_lights_off
|
||||||
|
- automation.sleep_lights_on
|
||||||
|
|
||||||
- title: HVAC
|
- title: HVAC
|
||||||
icon: mdi:temperature-fahrenheit
|
icon: mdi:temperature-fahrenheit
|
||||||
@@ -84,11 +87,13 @@ views:
|
|||||||
entities:
|
entities:
|
||||||
- sensor.home_temperature
|
- sensor.home_temperature
|
||||||
- sensor.home_humidity
|
- sensor.home_humidity
|
||||||
|
- sensor.upstairs_temperature
|
||||||
- type: history-graph
|
- type: history-graph
|
||||||
entities:
|
entities:
|
||||||
- sensor.home_temperature
|
- sensor.home_temperature
|
||||||
- sensor.thermostat_outside_temperature
|
- sensor.thermostat_outside_temperature
|
||||||
- sensor.home_humidity
|
- sensor.home_humidity
|
||||||
|
- sensor.upstairs_temperature
|
||||||
- type: entities
|
- type: entities
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.thermostat_current_status
|
- entity: sensor.thermostat_current_status
|
||||||
|
|||||||
Reference in New Issue
Block a user