Skip to content
Edit this page

Orion XS DC-DC

Orion XS DC-DC charger.

What it shows

  • DC input voltage, current and power
  • Output (battery) voltage, current and power
  • Charging mode, off reason and error as numbers and text
  • Device type, 24-bit firmware version and serial number

Configuration

Source: orion-xs-esp32-example.yaml · orion-xs-esp8266-example.yaml

orion-xs-esp32-example.yaml
substitutions:
  name: orion-xs
  external_components_source: github://KinDR007/VictronMPPT-ESPHOME@main

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

esp32:
  board: esp32dev
  framework:
    type: esp-idf

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

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

ota:
  platform: esphome

logger:
  baud_rate: 0

# 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: GPIO16  # Not connected! The communication is read-only
  rx_pin: GPIO17  # 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: "output voltage"
    battery_current:
      name: "output current"
    instantaneous_power:
      name: "output power"
    dc_input_voltage:
      name: "input voltage"
    dc_input_current:
      name: "input current"
    dc_input_power:
      name: "input power"
    charging_mode_id:
      name: "charging mode id"
    off_reason_bitmask:
      name: "off reason bitmask"
    error_code:
      name: "error code"

text_sensor:
  - platform: victron
    victron_id: victron0
    device_type:
      name: "device type"
    firmware_version_24bit:
      name: "firmware version"
    serial_number:
      name: "serial number"
    charging_mode:
      name: "charging mode"
    off_reason:
      name: "off reason"
    error:
      name: "error"
orion-xs-esp8266-example.yaml
substitutions:
  name: orion-xs
  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

ota:
  platform: esphome

logger:
  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: "output voltage"
    battery_current:
      name: "output current"
    instantaneous_power:
      name: "output power"
    dc_input_voltage:
      name: "input voltage"
    dc_input_current:
      name: "input current"
    dc_input_power:
      name: "input power"
    charging_mode_id:
      name: "charging mode id"
    off_reason_bitmask:
      name: "off reason bitmask"
    error_code:
      name: "error code"

text_sensor:
  - platform: victron
    victron_id: victron0
    device_type:
      name: "device type"
    firmware_version_24bit:
      name: "firmware version"
    serial_number:
      name: "serial number"
    charging_mode:
      name: "charging mode"
    off_reason:
      name: "off reason"
    error:
      name: "error"

Run it

esphome run orion-xs-esp32-example.yaml

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