-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.yaml
More file actions
95 lines (84 loc) · 2.73 KB
/
configuration.yaml
File metadata and controls
95 lines (84 loc) · 2.73 KB
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
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Needed by Tailscale Proxy, allows https://iota.tail32765.ts.net from anywhere
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
mqtt: !include mqtt.yaml
homeassistant: !include customizations.yaml
# Enable turning on LG OLED TV with WakeOnLan packet
wake_on_lan:
# Auto-upload solar data to PVOutput
rest_command:
update_pvoutput:
url: https://pvoutput.org/service/r2/addstatus.jsp
method: post
content_type: "application/x-www-form-urlencoded"
headers:
X-Pvoutput-Apikey: !secret pvoutput_api_key
X-Pvoutput-SystemId: !secret pvoutput_system_id
payload: >-
d={{now().strftime("%Y%m%d")}}
&t={{now().strftime("%H:%M")}}
&c1=2
&v1={{(states('sensor.solar_inverter_todaygenerate')|float*1000)|round(0) }}
# Averaging sensors to enable deriving current state from power use:
sensor:
- platform: filter
unique_id: washing_machine_average_power
name: "Washing Machine Average Power"
entity_id: sensor.washing_machine_plug_power
filters:
- filter: time_simple_moving_average
window_size: "00:01"
precision: 2
- platform: filter
unique_id: dishwasher_average_power
name: "Dishwasher Average Power"
entity_id: sensor.dishwasher_plug_power
filters:
- filter: time_simple_moving_average
window_size: "00:01"
precision: 2
# Washing machine state derived from door state + average power use
template:
- sensor:
- unique_id: washing_machine_state
name: "Washing Machine State"
state: >
{% if is_state('binary_sensor.washing_machine_door_opening', 'on') %}
off
{% elif states("sensor.washing_machine_average_power")|float > 10.0 %}
on
{% else %}
standby
{% endif %}
icon: >
{% if is_state("sensor.washing_machine_state", "standby") %}
mdi:washing-machine-alert
{% elif is_state("sensor.washing_machine_state", "off") %}
mdi:washing-machine-off
{% else %}
mdi:washing-machine
{% endif %}
# Entities controllable via HassControl (Garmin IQ app)
group:
garmin:
name: Garmin
entities:
- light.upstairs_lights
- light.lounge_lights_2
- light.dining_table_lights_2
- light.bookcase_ligths
- light.kitchen_island_lights_2
- light.kitchen_bench_lights_2
- light.kitchen_cupboards
- light.office_front_light
- light.office_back_light