-
Notifications
You must be signed in to change notification settings - Fork 23
/
victron_ble.yaml
135 lines (121 loc) · 3.69 KB
/
victron_ble.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
128
129
130
131
132
133
134
135
substitutions:
# Set the MAC addresses and encryption keys of your Victron devices here
# The values here are examples and cannot work for your devices
smart_shunt_mac_address: 60:A4:23:91:8F:55
smart_shunt_encryption_key: 0df4d0395b7d1a876c0c33ecb9e70dcd
smart_solar_mac_address: 60:A4:23:91:8F:56
smart_solar_encryption_key: 0df4d0395b7d1a876c0c33ecb9e70aea
esphome:
name: "victron-ble"
external_components:
- source: github://Fabian-Schmidt/esphome-victron_ble
esp32:
board: esp32dev
logger:
level: DEBUG
esp32_ble_tracker:
victron_ble:
- id: MySmartShunt
mac_address: ${smart_shunt_mac_address}
bindkey: ${smart_shunt_encryption_key}
# Advanced users can use `on_*_message` action. The data is in the `message` variable.
on_battery_monitor_message:
- logger.log: "Message from Battery Monitor."
on_solar_charger_message:
- logger.log: "Message from Solar Charger."
on_inverter_message:
- logger.log: "Message from Inverter."
on_dcdc_converter_message:
- logger.log: "Message from DC/DC Converter."
on_smart_lithium_message:
- logger.log: "Message from Smart Lithium."
on_inverter_rs_message:
- logger.log: "Message from Inverter RS."
on_smart_battery_protect_message:
- logger.log: "Message from Smart Battery Protect."
on_lynx_smart_bms_message:
- logger.log: "Message from Lynx Smart BMS."
on_multi_rs_message:
- logger.log: "Message from Multi RS."
on_ve_bus_message:
- logger.log: "Message from VE.Bus."
on_dc_energy_meter_message:
- logger.log: "Message from DC Energy Meter."
- id: MySmartSolar
mac_address: ${smart_solar_mac_address}
bindkey: ${smart_solar_encryption_key}
sensor:
# MySmartShunt
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Time remaining"
type: TIME_TO_GO
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Battery voltage"
type: BATTERY_VOLTAGE
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Starter Battery"
# BAUX_VOLTAGE or MID_VOLTAGE or TEMPERATURE.
# Depending on configuration of SmartShunt
type: AUX_VOLTAGE
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Current"
type: BATTERY_CURRENT
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Consumed Ah"
type: CONSUMED_AH
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "State of charge"
type: STATE_OF_CHARGE
# MySmartSolar
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "Battery Voltage"
type: BATTERY_VOLTAGE
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "Battery Current"
type: BATTERY_CURRENT
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "Yield Today"
type: YIELD_TODAY
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "PV Power"
type: PV_POWER
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "Load Current"
type: LOAD_CURRENT
binary_sensor:
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Battery has Alarm"
type: ALARM
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "MPPT is in Fault state"
type: DEVICE_STATE_FAULT
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "MPPT has Error"
type: CHARGER_ERROR
text_sensor:
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Battery Alarm reason"
type: ALARM_REASON
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "MPPT state"
type: DEVICE_STATE
- platform: victron_ble
victron_ble_id: MySmartSolar
name: "MPPT Error reason"
type: CHARGER_ERROR