Skip to content
Edit this page

Blue Smart Charger

Blue Smart IP65 and IP22 chargers.

What it shows

  • Battery voltage and current
  • Charging mode and error as numbers and text
  • Device type, 24-bit firmware version, hardware revision and serial number

Configuration

Source: bluesmart-charger-esp32-example.yaml · bluesmart-charger-esp8266-example.yaml

bluesmart-charger-esp32-example.yaml
substitutions:
  name: bluesmart-charger
  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
  min_auth_mode: WPA2

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 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: "current"
    error_code:
      name: "error code"
    charging_mode_id:
      name: "mode id"

text_sensor:
  - platform: victron
    victron_id: victron0
    device_type:
      name: "device type"
    firmware_version_24bit:
      name: "firmware version"
    serial_number:
      name: "serial number"
    hardware_revision:
      name: "hardware number"
    error:
      name: "error"
    charging_mode:
      name: "charging mode"
bluesmart-charger-esp8266-example.yaml
substitutions:
  name: bluesmart-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:

# 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: "current"
    error_code:
      name: "error code"
    charging_mode_id:
      name: "mode id"

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

Run it

esphome run bluesmart-charger-esp32-example.yaml

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