Fabian-Schmidt / esphome-victron_ble

Use official Victron BLE endpoint for fetching data from Victron devices via Bluetooth LE via ESPHome.
GNU General Public License v3.0
152 stars 15 forks source link

Value of 'DEVICE_STATE_BULK', 'DEVICE_STATE_FLOAT' and 'DEVICE_STATE_ABSORPTION' doesn't change if SOLAR_CHARGER message recieved. #11

Closed YoshiiPlayzz closed 1 year ago

YoshiiPlayzz commented 1 year ago

Hello. First I like to thank you for this custom component, I really appreciate your work!

Everything else is working fine, but like I mentioned in the title the value of the binary sensors DEVICE_STATE_BULK, DEVICE_STATE_FLOAT and DEVICE_STATE_ABSORPTION doesn't change if a SOLAR_CHARGER message is recieved. However, the value of DEVICE_STATE changes correctly. Also if I visit the web-dashboard of the esp all those sensors have the value 'OFF' although the DEVICE_STATE has e.g. the value 'Float'.

My specs:

My configuration:

...
esp32_ble_tracker:  
victron_ble:
  - id: GartenSolar
    mac_address: !secret mac
    bindkey: !secret bind_key
# Text Sensoren
text_sensor: 
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE"
    type: DEVICE_STATE

sensor:
# Stromstärke Batterie
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Batterie Stromstärke (A)"
    type: BATTERY_CURRENT
# Volt Batterie
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Batterie Spannung (V)"
    type: BATTERY_VOLTAGE
# Watt Batterie
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Batterie Leistung (W)"
    type: BATTERY_POWER
# Fehler Laderegler
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Fehler Laderegler"
    type: CHARGER_ERROR
# Solarzelle Leistung
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Solarzelle Leistung (W)"
    type: PV_POWER
# Solarzelle Generiert Heute
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "Solarzelle Leistung heute (kWh)"
    type: YIELD_TODAY
binary_sensor:
# Konstantstrom BULK  
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_BULK"
    type: DEVICE_STATE_BULK
# Konstantspannung ABSORPTION
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_ABSORPTION"
    type: DEVICE_STATE_ABSORPTION
 # Ladungserhaltung FLOAT
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_FLOAT"
    type: DEVICE_STATE_FLOAT 

  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_EXTERNAL_CONTROL" 
    type: DEVICE_STATE_EXTERNAL_CONTROL
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_AUTO_EQUALIZE" 
    type: DEVICE_STATE_AUTO_EQUALIZE
  - platform: victron_ble
    victron_ble_id: GartenSolar
    name: "DEVICE_STATE_OFF" 
    type: DEVICE_STATE_OFF 

Thank you very much

YoshiiPlayzz commented 1 year ago

It is working perfectly: image