forked from hn/ginlong-solis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolis-esphome-esp8266.yaml
101 lines (85 loc) · 2.28 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
#
# solis-esphome-esp8266.yaml -- Ginlong Solis Inverter ESPhome definition for ESP8266 MCUs.
#
# (C) 2023 Hajo Noerenberg
#
# Usage:
# 1. Depending on your type of inverter (INV or ESINV),
# include modbus definition in 'packages' section below
# 2. Correctly set timezone in the 'time' section below,
# as the time of your inverter is set via NTP.
# https://esphome.io/components/time/index.html
# 3. 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
name_add_mac_suffix: true
esp8266:
board: d1_mini
logger:
packages:
device_base: !include common/solis-modbus-inv.yaml
#device_base: !include common/solis-modbus-esinv.yaml
time:
- platform: sntp
id: sntp_time
timezone: "CET-1CEST,M3.5.0,M10.5.0/3"
api:
encryption:
key: !secret api_encryption_key
ota:
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"