Files
esphome-votronic/esp8266-charging-converter-example.yaml
2023-02-09 08:28:17 +01:00

88 lines
2.0 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.0.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: uart0
baud_rate: 1000
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
votronic:
- id: votronic0
uart_id: uart0
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"
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"