-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathesp32-example.yaml
More file actions
111 lines (98 loc) · 2.26 KB
/
Copy pathesp32-example.yaml
File metadata and controls
111 lines (98 loc) · 2.26 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
substitutions:
name: solax-x1-mini
device_description: "Monitor a Solax X1 mini via RS485"
external_components_source: github://syssi/esphome-solax-x1-mini@main
tx_pin: GPIO16
rx_pin: GPIO17
esphome:
name: ${name}
friendly_name: ${name}
comment: ${device_description}
project:
name: "syssi.esphome-solax-x1-mini"
version: 2.7.0
esp32:
board: wemos_d1_mini32
framework:
type: esp-idf
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
min_auth_mode: WPA2
ota:
platform: esphome
logger:
level: DEBUG
# If you use Home Assistant please remove this `mqtt` section and uncomment the `api` component!
# The native API has many advantages over MQTT: https://esphome.io/components/api.html#advantages-over-mqtt
mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
# api:
uart:
id: uart_0
baud_rate: 9600
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
solax_modbus:
- id: modbus0
uart_id: uart_0
# flow_control_pin: GPIO0
solax_x1_mini:
solax_modbus_id: modbus0
update_interval: 1s
text_sensor:
- platform: solax_x1_mini
mode_name:
name: "mode name"
errors:
name: "errors"
sensor:
- platform: solax_x1_mini
ac_power:
name: "ac power"
energy_today:
name: "energy today"
energy_total:
name: "energy total"
dc1_voltage:
name: "dc1 voltage"
dc2_voltage:
name: "dc2 voltage"
dc1_current:
name: "dc1 current"
dc2_current:
name: "dc2 current"
ac_current:
name: "ac current"
ac_voltage:
name: "ac voltage"
ac_frequency:
name: "ac frequency"
temperature:
name: "temperature"
runtime_total:
name: "runtime total"
mode:
name: "mode"
error_bits:
name: "error bits"
grid_voltage_fault:
name: "grid voltage fault"
grid_frequency_fault:
name: "grid frequency fault"
dc_injection_fault:
name: "dc injection fault"
temperature_fault:
name: "temperature fault"
pv1_voltage_fault:
name: "pv1 voltage fault"
pv2_voltage_fault:
name: "pv2 voltage fault"
gfc_fault:
name: "gfc fault"