-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathesp8266-charger-example.yaml
100 lines (87 loc) · 2.35 KB
/
esp8266-charger-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
substitutions:
name: votronic-solar-charger
device_description: "Monitor a Votronic Solar Charger via the display link port (UART)"
external_components_source: github://syssi/esphome-votronic@main
tx_pin: GPIO4
rx_pin: GPIO5
rx_timeout: 150ms
esphome:
name: ${name}
comment: ${device_description}
min_version: 2024.6.0
project:
name: "syssi.esphome-votronic"
version: 3.0.0
esp8266:
board: d1_mini
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
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: 1000
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
votronic:
- id: votronic0
uart_id: uart_0
rx_timeout: ${rx_timeout}
throttle: 2s
binary_sensor:
- platform: votronic
votronic_id: votronic0
charging:
name: "${name} charging"
discharging:
name: "${name} discharging"
controller_active:
name: "${name} controller active"
current_reduction:
name: "${name} current reduction"
aes_active:
name: "${name} aes active"
sensor:
- platform: votronic
votronic_id: votronic0
battery_voltage:
name: "${name} battery voltage"
secondary_battery_voltage:
name: "${name} secondary battery voltage"
current:
name: "${name} current"
power:
name: "${name} power"
state_of_charge:
name: "${name} state of charge"
controller_temperature:
name: "${name} controller temperature"
charging_mode_setting_id:
name: "${name} charging mode setting id"
battery_status_bitmask:
name: "${name} battery status bitmask"
charging_controller_status_bitmask:
name: "${name} charging controller status bitmask"
text_sensor:
- platform: votronic
votronic_id: votronic0
charging_mode_setting:
name: "${name} charging mode setting"
battery_status:
name: "${name} battery status"
charging_controller_status:
name: "${name} charging controller status"