Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add instant readout for BSC IP65 12/15 #129

Open
btraversjr21 opened this issue Dec 12, 2024 · 9 comments
Open

Please add instant readout for BSC IP65 12/15 #129

btraversjr21 opened this issue Dec 12, 2024 · 9 comments

Comments

@btraversjr21
Copy link

equest sensor data for BSC IP65 12/15. I am prompted for the encryption key when it detects the device and the correct MAC, but HA will list it and says no devices or sensors.

Now that Victron has instant readout data for this charger it would be nice to have in home assistant. At least these sensors;
Charging State
Battery Voltage
Battery Current

I have tried other Victron IR integrations, but they do not work at all. I much prefer this repo.

ERROR LOG:
Logger: custom_components.victron_ble.device
Source: custom_components/victron_ble/device.py:90
integration: Victron BLE (documentation, issues)
First occurred: 10:08:30 PM (19 occurrences)
Last logged: 10:08:51 PM

Could not identify Victron device type

image

@houlejm
Copy link

houlejm commented Dec 13, 2024

Same with BSC IP22 12/30.
Victron connect app shows Voltage Current And charging status:

Screenshot_20241213_173350

Thanks

@FloX5E70
Copy link

These are exactly my wishes. But with my BSC IP65 12/15 there is (still?) no instant readout. What firmware do you have? I have v3.21, bootloader v2.07 installed and there is no update available. The Victron Connect app (Android) is up to date and does not contain an update. My BSC IP22 provides BT instant readout since last FW-Update but don't work with this integration.

@BikeAtor
Copy link

I switched to ESPhome with ESP32 for Victron Integration in HA https://github.com/Fabian-Schmidt/esphome-victron_ble/

@FloX5E70
Copy link

FloX5E70 commented Dec 21, 2024

Thanks for the hint @BikeAtor. May you post your .yaml for the IP22 or IP65? It's not so easy...

@BikeAtor
Copy link

#
# BLE Proxy
# Victron bridge
#

esphome:
  name: "georg-bleproxy-1"

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

esp32:
  board: esp32dev
  framework:
    type: arduino

wifi:
  use_address: !secret wifi_bleproxy1_ip
  #power_save_mode: none
  networks:
  - ssid: !secret wifi_ssid
    password: !secret wifi_password

# Enable logging
logger:

# Enable Home Assistant API
api:

web_server:
  port: 80
  local: true
  ota: false

# can handle updates over Wifi
ota:
  - platform: esphome
    password: !secret ota_password

esp32_ble_tracker:
  scan_parameters:
    #interval: 160ms #the default is 320ms and you want to shorten it, try half
    #window: 60ms #the default is 30ms so try doubling it
    interval: 1100ms
    window: 1100ms
    # We currently use the defaults to ensure Bluetooth
    # can co-exist with WiFi In the future we may be able to
    # enable the built-in coexistence logic in ESP-IDF
    active: true

bluetooth_proxy:
  active: true

victron_ble:
  - id: blue_smart
    mac_address: !secret blue_smart_mac_address
    bindkey: !secret blue_smart_bindkey
  - id: smart_solar
    mac_address: !secret smart_solar_mac_address
    bindkey: !secret smart_solar_bindkey
  - id: orion_xs
    mac_address: !secret orion_xs_mac_address
    bindkey: !secret orion_xs_bindkey
  - id: battery_sense_1
    mac_address: !secret battery_sense_1_mac_address
    bindkey: !secret battery_sense_1_bindkey

sensor:
  # blue_smart
  - platform: victron_ble
    victron_ble_id: blue_smart
    name: "blue_smart_battery_voltage"
    type: BATTERY_VOLTAGE
    icon: mdi:sine-wave
  - platform: victron_ble
    victron_ble_id: blue_smart
    name: "blue_smart_battery_current"
    type: BATTERY_CURRENT
    icon: mdi:current-dc
  - platform: victron_ble
    victron_ble_id: blue_smart
    name: "blue_smart_battery_power"
    type: BATTERY_POWER
    icon: mdi:flash
#  - platform: victron_ble
#    victron_ble_id: blue_smart
#    name: "blue_smart_temperature"
#    type: TEMPERATURE
#  - platform: victron_ble
#    victron_ble_id: blue_smart
#    name: "blue_smart_ac_current"
#    type: AC_CURRENT
  
  # smart_solar
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_battery_voltage"
    type: BATTERY_VOLTAGE
    icon: mdi:sine-wave
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_battery_current"
    type: BATTERY_CURRENT
    icon: mdi:current-dc
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_battery_power"
    type: BATTERY_POWER
    icon: mdi:flash
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_yield_today"
    type: YIELD_TODAY
    icon: mdi:flash
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_pv_power"
    type: PV_POWER
    icon: mdi:flash
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_load_current"
    type: LOAD_CURRENT
    icon: mdi:current-dc
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_device_state_number"
    type: DEVICE_STATE
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_error_reason_number"
    type: CHARGER_ERROR
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_off_reason_number"
    type: OFF_REASON

  # orion_xs
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_input_voltage"
    type: INPUT_VOLTAGE
    icon: mdi:sine-wave
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_input_current"
    type: INPUT_CURRENT
    icon: mdi:current-dc
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_output_voltage"
    type: OUTPUT_VOLTAGE
    icon: mdi:sine-wave
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_output_current"
    type: OUTPUT_CURRENT
    icon: mdi:current-dc
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_device_state_number"
    type: DEVICE_STATE
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_error_reason_number"
    type: CHARGER_ERROR
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_off_reason_number"
    type: OFF_REASON

  # battery_sense_1
  - platform: victron_ble
    victron_ble_id: battery_sense_1
    name: "battery_sense_1_voltage"
    type: BATTERY_VOLTAGE
    icon: mdi:sine-wave
  - platform: victron_ble
    victron_ble_id: battery_sense_1
    name: "battery_sense_1_temperature"
    type: TEMPERATURE

binary_sensor:
  # smart_soloar
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_fault_state"
    type: DEVICE_STATE_FAULT
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_has_error"
    type: CHARGER_ERROR

text_sensor:
  # smart_soloar
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_device_state_text"
    type: DEVICE_STATE
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_error_reason_text"
    type: CHARGER_ERROR
  - platform: victron_ble
    victron_ble_id: smart_solar
    name: "smart_solar_off_reason_text"
    type: OFF_REASON
  
  # orion_xs
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_device_state_text"
    type: DEVICE_STATE
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_error_reason_text"
    type: CHARGER_ERROR
  - platform: victron_ble
    victron_ble_id: orion_xs
    name: "orion_xs_off_reason_text"
    type: OFF_REASON

@FloX5E70
Copy link

FloX5E70 commented Dec 21, 2024

Great, thanks! Looks like mine, but don't work... No errors, see all entities in HA but no values ("unknown").

esphome:
  name: victron-ble
  friendly_name: Victron BLE

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

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

ota:
  - platform: esphome
    password: "..."

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

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

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

esp32_ble_tracker:
  scan_parameters:
    #interval: 160ms #the default is 320ms and you want to shorten it, try half
    #window: 60ms #the default is 30ms so try doubling it
    interval: 1100ms
    window: 1100ms
    # We currently use the defaults to ensure Bluetooth
    # can co-exist with WiFi In the future we may be able to
    # enable the built-in coexistence logic in ESP-IDF
    active: true

victron_ble:
  - id: BSC
    mac_address: "..."    
    bindkey: "..."

sensor:
  # BSC
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Battery Voltage"
    type: BATTERY_VOLTAGE
  - platform: victron_ble
    victron_ble_id: BSC
    name: "blue_smart_battery_current"
    type: BATTERY_CURRENT
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Temperatur"
    type: TEMPERATURE
binary_sensor:
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Bulk"
    type: DEVICE_STATE_BULK
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Absoption"
    type: DEVICE_STATE_ABSORPTION
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Float"
    type: DEVICE_STATE_FLOAT
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Storage"
    type: DEVICE_STATE_STORAGE
text_sensor:
  - platform: victron_ble
    victron_ble_id: BSC
    name: "Error"
    type: CHARGER_ERROR
  - platform: victron_ble
    victron_ble_id: BSC
    name: "State"
    type: DEVICE_STATE

@BikeAtor
Copy link

No real Idea: try lowercase id's and MAC in Format (Uppercase) AB:CD:DE:... not the format shown in the App.

@FloX5E70
Copy link

No effect ( ":" is not accepted). Add my Smart Battery Sense to this yaml and it work's without problems.

@cpuks
Copy link

cpuks commented Jan 7, 2025

Works perfect with my IP22 15 along with two smart battery meters - thanks for adding that charger!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants