-
Notifications
You must be signed in to change notification settings - Fork 17
/
solis-esphome-esp8266.yaml
102 lines (85 loc) · 2.3 KB
/
solis-esphome-esp8266.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
#
# solis-esphome-esp8266.yaml -- Ginlong Solis Inverter ESPhome definition for ESP8266 MCUs.
#
# (C) 2023-2024 Hajo Noerenberg
#
# Usage:
# 1. Depending on your type of device (INV, ESINV or EPM),
# include modbus definition in 'packages' section below
# 2. Compile and upload
# https://esphome.io/guides/getting_started_command_line.html#first-uploading
#
#
# http://www.noerenberg.de/
# https://github.com/hn/ginlong-solis
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3.0 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
#
esphome:
name: solis-esp8266
friendly_name: Ginlong Solis Inverter
esp8266:
board: d1_mini
logger:
packages:
# Uncomment exactly one line depending on your device type
#inv: !include common/solis-modbus-inv.yaml
#esinv: !include common/solis-modbus-esinv.yaml
#epm: !include common/solis-modbus-epm.yaml
# Uncomment for optional INV inverter addon
#inv-acr10r-1ph: !include common/solis-modbus-inv-addon-acr10r-1ph.yaml
time:
- platform: homeassistant
id: network_time
api:
encryption:
key: !secret api_encryption_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Ginlong Solis Inverter"
password: !secret wifi_ap_password
captive_portal:
script:
- mode: restart
id: modbus_activity
then:
# e.g. blink led
uart:
id: modbus_uart
tx_pin: D6
rx_pin: D5
baud_rate: 9600
modbus:
#flow_control_pin: D7
send_wait_time: 300ms
id: modbus_hw
modbus_controller:
- id: modbus_master
address: 0x1
modbus_id: modbus_hw
setup_priority: -10
button:
- platform: factory_reset
name: Restart with factory default settings
id: reset_all
- platform: restart
name: Reboot device
sensor:
- platform: wifi_signal
name: "WiFi Signal"