Repository navigation
Expand file tree
/
Copy pathpv-inverter.yaml
More file actions
58 lines (49 loc) · 2.3 KB
/
Copy pathpv-inverter.yaml
File metadata and controls
58 lines (49 loc) · 2.3 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
# Copyright 2025 Lewa-Reka <lewareka.yt@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
substitutions:
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
api_key: !secret pv_inverter_api_key
fallback_password: !secret pv_inverter_fallback_password
modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings
# Safe Mode parameters for supported inverters
safe_mode_delay: 600s # Time after which transition to safe mode and setting default operating parameters will occur
default_maximum_battery_charge_current: "140" # Amps
default_max_sell_power: "12000" # Watts. Adjust to your inverter
default_system_work_mode: "Zero Export To Load" # "Selling First", "Zero Export To Load", "Zero Export To CT"
default_solar_sell: "on" # "on", "off"
default_force_off_grid: "off" # "on", "off"
enable_sync_time: false # true, false - Enable time sync with HomeAssistant (Deye 3P inverters only)
packages:
pv_inverter:
url: https://github.com/Lewa-Reka/esphome-deye-inverter
refresh: 12h
files:
### Use the appropriate file for your inverter, uncomment the one you want to use ###
# pv_inverter/deye_hybrid_1p_lv.yaml # SG0XLP1 Low Voltage (1P)
pv_inverter/deye_hybrid_3p_lv.yaml # SG0XLP3 Low Voltage (3P)
# pv_inverter/deye_hybrid_3p_hv.yaml # SG0XHP3 High Voltage (3P)
# Set appropriately if using a different board. https://esphome.io/components/#supported-microcontrollers
esp32:
board: esp32dev
framework:
type: esp-idf
uart:
# Default TX and RX pins, if TTL converter is connected differently, set appropriate pins
tx_pin: GPIO17
rx_pin: GPIO16
modbus:
# flow_control_pin: GPIO4 # Uncomment and set appropriate pin if your TTL converter requires it
#logger:
# level: VERBOSE # VERBOSE / DEBUG / INFO / WARN