question

kleiner-schelm avatar image
kleiner-schelm asked

RS Smart 48/6000 Solar ve.direct

Hello,

i connected the RS Smart 48/6000 Solar Device with esp8266 and ve.direct to Home Assistant (with ESPHome)

But there is no parameter - Battery SOC in Home Assistant - yaml Code.

Can someone help me ?

i tryed to connect the Device with victron.ble to Home assistant but it did not work. Maybe someone can help by this. Thanks for helping me.

VictronConnectVE.Direct
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Matthias Lange - DE avatar image Matthias Lange - DE ♦ commented ·
0 Likes 0 ·
2 Answers
kleiner-schelm avatar image
kleiner-schelm answered ·

Es geht ja, ich habe sogar ne 15m Leitung vom Wechselrichter zum esp8266, da ich beim Wechselrichter kein WLAN habe. Funktioniert stabil. Es kommen ja auch fast alle Daten über die ve.direct-Schnittstelle. Nur der Ladezustand des Akkus ist nicht vorhanden. Über den Lademodus habe ich nen Haltpunkt, wie weit der Akku geladen ist. Ich könnte ja mittels der Daten Lademodus, Ladestrom und der Zeit im Home Assistant programmieren, was in etwa den Ladezustand anzeigt. Oder ich mache eine Liste, Batteriespannung und Lademodus. Schreibe ein Tag mit, wie hoch der Ladestand bei batteriespannung x ist. Das ist für den Winter, wenn man nicht mehr raus will.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

kleiner-schelm avatar image
kleiner-schelm answered ·

hello,

it works now. Here the code. But no Battery SOC Parameter.

esphome:
  name: victron-esp32
  friendly_name: victron-esp32

external_components:
  - source: github://Fabian-Schmidt/esphome-victron_ble

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

ota:
  password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Victron-Esp32 Fallback Hotspot"
    password: "xxxxxxxxx"


esp32_ble_tracker:

victron_ble:
  - id: MySmartShunt
    mac_address: "xx:xx:xx:xx:xx:xx"    
    bindkey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

  - id: MySmartSolar
    mac_address: "xx:xx:xx:xx:xx:xx"    
    bindkey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

sensor:
  # MySmartShunt
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Time remaining"
    type: TIME_TO_GO
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Battery voltage"
    type: BATTERY_VOLTAGE
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Starter Battery"
    # AUX_VOLTAGE or MID_VOLTAGE or TEMPERATURE.
    # Depending on configuration of SmartShunt.
    type: AUX_VOLTAGE
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Current"
    type: BATTERY_CURRENT
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Consumed Ah"
    type: CONSUMED_AH
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "State of charge"
    type: STATE_OF_CHARGE

  # MySmartSolar
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Battery Voltage"
    type: BATTERY_VOLTAGE
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Battery Current"
    type: BATTERY_CURRENT
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Yield Today"
    type: YIELD_TODAY
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "PV Power"
    type: PV_POWER
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Load Current"
    type: LOAD_CURRENT

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "State of charge"
    type: STATE_OF_CHARGE

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Consumed Ah"
    type: CONSUMED_AH

binary_sensor:
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Battery has Alarm"
    type: ALARM

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "MPPT is in Fault state"
    type: DEVICE_STATE_FAULT
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "MPPT has Error"
    type: CHARGER_ERROR

text_sensor:
 
  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Battery Alarm reason"
    type: ALARM_REASON

  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "State of charge"
    type: STATE_OF_CHARGE

  - platform: victron_ble
    victron_ble_id: MySmartShunt
    name: "Consumed Ah"
    type: CONSUMED_AH

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "MPPT state"
    type: DEVICE_STATE
 
  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "MPPT Error reason"
    type: CHARGER_ERROR

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "State of charge"
    type: STATE_OF_CHARGE

  - platform: victron_ble
    victron_ble_id: MySmartSolar
    name: "Consumed Ah"
    type: CONSUMED_AH


captive_portal:
     

web_server: # creates a web server where you can access all this stuff without home assistant (good for debugging or working headless (no HA))
  port: 80
  include_internal: true
  ota: true
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources