-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
113 lines (100 loc) · 3.14 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
# SWM added 23 July 2019:
# Example configuration.yaml entry
weather:
- platform: metoffice
api_key: 4516cae0-e8b6-4d30-9f74-4b22ed65baee
sensor:
- platform: metoffice
api_key: 4516cae0-e8b6-4d30-9f74-4b22ed65baee
monitored_conditions:
- weather
- temperature
- feels_like_temperature
# - wind_speed
# - wind_direction
# - wind_gust
# - visibility
# - visibility_distance
# - uv
- precipitation
- humidity
# SWM: try a sensor based on:
# https://www.home-assistant.io/components/sensor.command_line/
# Example configuration.yaml entry
#sensor:
- platform: command_line
name: "CPU Temperature"
command: "cat /sys/class/thermal/thermal_zone0/temp"
# If errors occur, remove degree symbol below
unit_of_measurement: "C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: rest
# resource: http://freezerpi.local:5000/temperature
name: "Freezer Temperature"
resource: http://192.168.1.227:5000/temperature
method: GET
value_template: '{{ value_json.temperature }}'
unit_of_measurement: "C"
device_class: temperature
- platform: rest
name: "Powerwall2 Battery Charge"
resource: https://1152100-03-E--TG1191470015AR.home/api/system_status/soe
verify_ssl: false
device_class: battery
value_template: '{{ value_json.percentage }}'
unit_of_measurement: "%"
- platform: rest
name: powerwall
resource: https://1152100-03-E--TG1191470015AR.home/api/meters/aggregates
verify_ssl: false
# scan_interval: 120
json_attributes:
- site
- battery
- load
- solar
value_template: 'OK'
- platform: template
sensors:
grid_power:
value_template: '{{ states.sensor.powerwall.attributes["site"]["instant_power"] | multiply(0.001) }}'
device_class: power
unit_of_measurement: 'kW'
battery_power:
value_template: '{{ states.sensor.powerwall.attributes["battery"]["instant_power"] | multiply(0.001) }}'
device_class: power
unit_of_measurement: 'kW'
house_power:
value_template: '{{ states.sensor.powerwall.attributes["load"]["instant_power"] | multiply(0.001) }}'
device_class: power
unit_of_measurement: 'kW'
solar_power:
value_template: '{{ states.sensor.powerwall.attributes["solar"]["instant_power"] | multiply(0.001) }}'
device_class: power
unit_of_measurement: 'kW'
- platform: darksky
api_key: cadbffc5eb25c18e8ea9529b93c3f0d0
forecast:
- 0
hourly_forecast:
- 0
- 1
monitored_conditions:
- summary
- icon
- temperature
# - platform: command_line
# name: swmtest
# command: "python3 /config/python_scripts/returnten.py"
# unit_of_measurement: "%"