forked from KinDR007/VictronMPPT-ESPHOME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smartshunt-esp8266-example.yaml
127 lines (116 loc) · 3.64 KB
/
smartshunt-esp8266-example.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
substitutions:
name: victron-smartshunt
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 MPPT charger
baud_rate: 19200
rx_buffer_size: 256
victron:
uart_id: uart0
id: victron0
throttle: 10s
sensor:
- platform: victron
victron_id: victron0
battery_voltage:
name: "${name} battery voltage"
auxiliary_battery_voltage:
name: "${name} auxiliary battery voltage"
midpoint_voltage_of_the_battery_bank:
name: "${name} midpoint voltage of the battery bank"
midpoint_deviation_of_the_battery_bank:
name: "${name} midpoint deviation of the battery bank"
battery_current:
name: "${name} battery current"
battery_temperature:
name: "${name} battery temperature"
instantaneous_power:
name: "${name} instantaneous power"
consumed_amp_hours:
name: "${name} consumed amp hours"
state_of_charge:
name: "${name} state of charge"
time_to_go:
name: "${name} time to go"
depth_of_the_deepest_discharge:
name: "${name} depth of the deepest discharge"
depth_of_the_last_discharge:
name: "${name} depth of the last discharge"
depth_of_the_average_discharge:
name: "${name} depth of the average discharge"
number_of_charge_cycles:
name: "${name} number of charge cycles"
number_of_full_discharges:
name: "${name} number of full discharges"
cumulative_amp_hours_drawn:
name: "${name} cumulative amp hours drawn"
min_battery_voltage:
name: "${name} min battery voltage"
max_battery_voltage:
name: "${name} max battery voltage"
last_full_charge:
name: "${name} last full charge"
number_of_automatic_synchronizations:
name: "${name} number of automatic synchronizations"
number_of_low_main_voltage_alarms:
name: "${name} number of low main voltage alarms"
number_of_high_main_voltage_alarms:
name: "${name} number of high main voltage alarms"
number_of_low_auxiliary_voltage_alarms:
name: "${name} number of low auxiliary voltage alarms"
number_of_high_auxiliary_voltage_alarms:
name: "${name} number of high auxiliary voltage alarms"
min_auxiliary_battery_voltage:
name: "${name} min auxiliary battery voltage"
max_auxiliary_battery_voltage:
name: "${name} max auxiliary battery voltage"
amount_of_discharged_energy:
name: "${name} amount of discharged energy"
amount_of_charged_energy:
name: "${name} amount of charged energy"
dc_monitor_mode_id:
name: "${name} dc monitor mode id"
text_sensor:
- platform: victron
victron_id: victron0
alarm_condition_active:
name: "${name} alarm condition active"
alarm_reason:
name: "${name} alarm reason"
model_description:
name: "${name} model description"
firmware_version:
name: "${name} firmware version"
device_type:
name: "${name} device type"
serial_number:
name: "${name} serial number"
dc_monitor_mode:
name: "${name} dc monitor mode"
binary_sensor:
- platform: victron
victron_id: victron0
relay_state:
name: "${name} relay state"