mirror of
https://github.com/syssi/esphome-votronic.git
synced 2025-07-23 04:23:02 +02:00
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
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}
|
|
project:
|
|
name: "syssi.esphome-votronic"
|
|
version: 1.1.0
|
|
|
|
esp8266:
|
|
board: d1_mini
|
|
|
|
external_components:
|
|
- source: ${external_components_source}
|
|
refresh: 0s
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
ota:
|
|
logger:
|
|
|
|
# If you use Home Assistant please remove this `mqtt` section and uncomment the native `api` component!
|
|
# api:
|
|
|
|
mqtt:
|
|
broker: !secret mqtt_host
|
|
username: !secret mqtt_username
|
|
password: !secret mqtt_password
|
|
id: mqtt_client
|
|
|
|
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"
|
|
|
|
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"
|
|
charging_mode_setting_id:
|
|
name: "${name} charging mode setting id"
|
|
battery_status_bitmask:
|
|
name: "${name} battery status bitmask"
|
|
|
|
text_sensor:
|
|
- platform: votronic
|
|
votronic_id: votronic0
|
|
charging_mode_setting:
|
|
name: "${name} charging mode setting"
|
|
battery_status:
|
|
name: "${name} battery status"
|