-
Notifications
You must be signed in to change notification settings - Fork 17
/
victron_ble_connect_all.yaml
53 lines (45 loc) · 1.26 KB
/
victron_ble_connect_all.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
substitutions:
# Set the MAC address of your Victron device here
mac_address: 60:A4:23:91:8F:55
esphome:
name: "victron-ble-all"
external_components:
- source: github://Fabian-Schmidt/esphome-victron_ble
esp32:
board: esp32dev
logger:
level: INFO
esp32_ble:
io_capability: keyboard_only
esp32_ble_tracker:
ble_client:
- mac_address: ${mac_address}
id: victron_smart_shunt_ble_client_id
on_passkey_request:
then:
- logger.log: "Authenticating with passkey"
- ble_client.passkey_reply:
id: victron_smart_shunt_ble_client_id
passkey: !secret ble_passkey
sensor:
- platform: victron_ble_connect
ble_client_id: victron_smart_shunt_ble_client_id
# Notify supports max 7 sensors
notify: true
# If notify is active then on every update_interval sensors are updated.
# If notify is disabled then on every update_interval a new connection to victron is made.
update_interval: 20s
state_of_charge:
name: "State of Charge"
voltage:
name: "Voltage"
power:
name: "Power Consumption"
current:
name: "Current"
ah:
name: "Consumed Ah"
starter_battery_voltage:
name: "Starter Battery Voltage"
remaining_time:
name: "Remaining Time"