-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
87 lines (77 loc) · 2.47 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: !secret my_lat
longitude: !secret my_long
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Detroit
# Customization file
customize: !include customize.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# add configurator tool, requires starting service for it
# ie: nohup sudo ./configurator.py &
# or better use systemd: https://community.home-assistant.io/t/simplistic-configuration-ui/10175/388 Thanks DanielPerna84
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: !secret hass_configrtr_url
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Discover some devices automatically
discovery:
mqtt:
broker: !secret mqtt_brkr_ip
port: 1883
client_id: home-assistant-1
username: !secret mqtt_usr
password: !secret mqtt_pwd
# Sensors
sensor:
# Weather prediction
- platform: yr
# Main meter electrical flow courtesy DTE monopoly
- platform: mqtt
name: "Energy 3sec demand"
state_topic: "event/metering/instantaneous_demand"
unit_of_measurement: 'W'
value_template: "{{ value_json.demand }}"
- platform: mqtt
name: "Energy 1min summation"
state_topic: "summation"
unit_of_measurement: 'W'
value_template: "{{ value_json.value }}"
# Solar production
- platform: enphase_envoy
ip_address: !secret envoy_ip
monitored_conditions:
- production
- daily_production
- seven_days_production
- lifetime_production
#platform: template
#name: Electric Power Consumption
#sensors:
#house_current_consumption:
#value_template: '{{(states.sensor.energy_1min_summation.state | float ) - (states.sensor.envoy_current_energy_production.state | float)}}'
#friendly_name: “Power Consumption”
#history_graph:
# name: Electric Power
# entities:
# - sensor.envoy_current_energy_production
# - sensor.energy_1min_summation
# hours_to_show: 24
# refresh: 10
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml