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.1.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" pv_controller_active: name: "${name} pv controller active" pv_current_reduction: name: "${name} pv current reduction" pv_aes_active: name: "${name} pv aes active" sensor: - platform: votronic votronic_id: votronic0 battery_voltage: name: "${name} battery voltage" pv_voltage: name: "${name} pv voltage" pv_current: name: "${name} pv current" pv_power: name: "${name} pv power" pv_controller_temperature: name: "${name} pv controller temperature" pv_mode_setting_id: name: "${name} pv mode setting id" pv_battery_status_bitmask: name: "${name} pv battery status bitmask" pv_controller_status_bitmask: name: "${name} pv controller status bitmask" text_sensor: - platform: votronic votronic_id: votronic0 pv_mode_setting: name: "${name} pv mode setting" pv_battery_status: name: "${name} pv battery status" pv_controller_status: name: "${name} pv controller status"