forked from KinDR007/VictronMPPT-ESPHOME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smartsolar-mppt-esp8266-example-multiple-uarts.yaml
97 lines (85 loc) · 2.15 KB
/
smartsolar-mppt-esp8266-example-multiple-uarts.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
substitutions:
name: victron
device0: victron0
device1: victron1
external_components_source: github://KinDR007/VictronMPPT-ESPHOME@main
esphome:
name: ${name}
platform: ESP8266
board: d1_mini
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
# api:
logger:
baud_rate: 0
esp8266_store_log_strings_in_flash: false
mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
uart:
- id: uart0
tx_pin: D8 # Not connected! The communication is read-only
rx_pin: D7 # Connect this this GPIO and GND to the first MPPT charger
baud_rate: 19200
rx_buffer_size: 256
- id: uart1
tx_pin: D6 # Not connected! The communication is read-only
rx_pin: D5 # Connect this this GPIO and GND to the second MPPT charger
baud_rate: 19200
rx_buffer_size: 256
victron:
- id: victron0
uart_id: uart0
throttle: 10s
- id: victron1
uart_id: uart1
throttle: 10s
sensor:
- platform: victron
victron_id: victron0
max_power_yesterday:
name: "${device0} max power yesterday"
panel_voltage:
name: "${device0} panel voltage"
panel_power:
name: "${device0} panel power"
battery_current:
name: "${device0} panel current"
load_current:
name: "${device0} load current"
- platform: victron
victron_id: victron1
max_power_yesterday:
name: "${device0} max power yesterday"
panel_voltage:
name: "${device1} panel voltage"
panel_power:
name: "${device1} panel power"
battery_current:
name: "${device1} panel current"
load_current:
name: "${device1} load current"
text_sensor:
- platform: victron
victron_id: victron0
charging_mode:
name: "${device0} charging mode"
error:
name: "${device0} error"
tracking_mode:
name: "${device0} tracking mode"
- platform: victron
victron_id: victron1
charging_mode:
name: "${device1} charging mode"
error:
name: "${device1} error"
tracking_mode:
name: "${device1} tracking mode"