Skip to content
Edit this page

Phoenix Charger

Phoenix Smart chargers with up to three outputs.

What it shows

  • Voltage and current of all three outputs (battery_voltage, _2, _3)
  • Charging mode, device mode and error as numbers and text
  • Relay state, device type and serial number

Configuration

Source: phoenix-charger-esp8266-example.yaml

phoenix-charger-esp8266-example.yaml
substitutions:
  name: phoenix-charger
  external_components_source: github://KinDR007/VictronMPPT-ESPHOME@main

esphome:
  name: ${name}
  friendly_name: ${name}
  project:
    name: "KinDR007.VictronMPPT-ESPHOME"
    version: 2.0.0

esp8266:
  board: d1_mini

external_components:
  - source: ${external_components_source}
    refresh: 0s

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  min_auth_mode: WPA2

ota:
  platform: esphome

logger:
  baud_rate: 0
  esp8266_store_log_strings_in_flash: false

# 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
  tx_pin: D8  # Not connected! The communication is read-only
  rx_pin: D7  # Connect this GPIO and GND to the MPPT charger
  baud_rate: 19200
  rx_buffer_size: 256

victron:
  uart_id: uart_0
  id: victron0
  throttle: 10s

sensor:
  - platform: victron
    victron_id: victron0
    battery_voltage:
      name: "battery voltage"
    battery_voltage_2:
      name: "battery voltage 2"
    battery_voltage_3:
      name: "battery voltage 3"
    battery_current:
      name: "battery current"
    battery_current_2:
      name: "battery current 2"
    battery_current_3:
      name: "battery current 3"
    error_code:
      name: "error code"
    charging_mode_id:
      name: "charging mode id"
    device_mode_id:
      name: "device mode id"

text_sensor:
  - platform: victron
    victron_id: victron0
    error:
      name: "error"
    charging_mode:
      name: "charging mode"
    device_type:
      name: "device type"
    serial_number:
      name: "serial number"
    device_mode:
      name: "device mode"

binary_sensor:
  - platform: victron
    victron_id: victron0
    relay_state:
      name: "relay state"

Run it

esphome run phoenix-charger-esp8266-example.yaml

See Build & flash for details and the secrets the example needs.