forked from XavierBerger/Solar-Router-for-ESPHome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esp8285-power-meter-proxy.yaml
68 lines (55 loc) · 1.99 KB
/
esp8285-power-meter-proxy.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
# ----------------------------------------------------------------------------------------------------
# ESPHome configuration - This part depends on your hardware target
# ----------------------------------------------------------------------------------------------------
esphome:
name: "esp8285"
friendly_name: ESP8285
esp8266:
board: esp8285
# Enable logging
logger:
baud_rate: 115200
level: INFO
logs:
component: ERROR
http_request.arduino: ERROR
# Enable Home Assistant API
api:
encryption:
key: !secret proxy_api_encryption_key
# Enable over-the-air updates
ota:
- platform: esphome
# WiFi connection
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)
reboot_timeout: 24h
# ----------------------------------------------------------------------------------------------------
# Customisation
# ----------------------------------------------------------------------------------------------------
substitutions:
# Power meter source -----------------------------------------------------------
# Define ip address of Shelly EM probe
power_meter_ip_address: "192.168.1.26:8000"
emeter_index: "0"
# LEDs -------------------------------------------------------------------------
# Yellow LED is reflecting power meter
yellow_led_pin: GPIO1
# power_meter_activated has to be set to 1 to activate the power measurment read
power_meter_activated_at_start: "1"
# Uncomment the following lines if you want to use the source from github
# packages:
# power_meter:
# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
# file: solar_router/power_meter_shelly_em.yaml
# refresh: 5s
# Remove the following lines if you want to use the source from github
packages:
common:
<<: !include solar_router/common.yaml
power_meter:
<<: !include solar_router/power_meter_shelly_em.yaml
http_request:
esp8266_disable_ssl_support: True