esphome-victron_ble icon indicating copy to clipboard operation
esphome-victron_ble copied to clipboard

Smart BatteryProtect : DEVICE_STATE : Unkown device state (249)

Open Chris2834 opened this issue 1 year ago • 6 comments

Nicely integrated SmartSolar MPPT 75/15 and Smart BatteryProtect 12V/24V 65A. Thanks for your code!

So far all running fine, except the unknown device state msg.

text_sensor:

  • platform: victron_ble victron_ble_id: MySmartBatteryProtect name: "BPS Device State" type: DEVICE_STATE

the log file states : ... [W][victron_ble.text_sensor:267]: [F3:61:37:41:62:C0] Unkown device state (249). [D][text_sensor:064]: 'BPS Device State': Sending state '249' ....

ESPHome version 2023.6.3

Victron Smart BatteryProtect 12V/24V 65A

  • Firmware 2.11
  • Bootload 1.04

Chris2834 avatar Jun 30 '23 21:06 Chris2834

Hi Thanks for the feedback. What does the Victron App state as the current Device State for 249 (0xF9)? It should be displayed on the Device list (start page of the app).

Fabian-Schmidt avatar Jul 01 '23 13:07 Fabian-Schmidt

Hi Fabian,

when switching off / on / off by the Victron iPhone APP the „DEVICE_STATE_OFF“ is inverted state of output and „DEVICE_STATE“ switches from "OFF" to "249" and back to "OFF"

Is 249 (0xF9) code for state on with additional encoding for manual switch on by (iPhone) APP?

I will let it run with "automatic" settings only and report later again.

Chris2834 avatar Jul 02 '23 15:07 Chris2834

Sounds like 249 should be Device State 'On'?

Fabian-Schmidt avatar Jul 02 '23 16:07 Fabian-Schmidt

nope, 249 is not directly related to the output state.

More Info on BPS behavior :

Setup the BPS with the Victron (iPhone) APP to switch internally auto on / off by batt level (here 23.6 off / 25.6 on). Activated the output with the APP as described earlier. Later today the BPS followed the rule and send an „WARNING_REASON“ == „Low_Voltage“ for 30 seconds as estimated, then switched of correctly the output power.

„ALARM“ from „OFF" to „ON" „ALARM_REASON“ from NA to „Low Voltage“ OFF_REASON from NA to „Protection Active“

DEVICE_STATE remains "249" !

DEVICE_STATE_FAULT remains „OFF“

DEVICE_STATE_OFF remains „OFF"

None of the (actual) HA sensors directly represents the physical on/off state of the hardware - see output voltage graph of HA.

Victron APP Screen indicating "STATE : On“ "OUTPUT : Off" with „Alarm E3 : Under voltage“

Chris2834 avatar Jul 02 '23 22:07 Chris2834

The fields DEVICE_STATE_FAULT and DEVICE_STATE_OFF are just checks if the DEVICE_STATE has a certain value.

I cannot see the graph you are mentioning.

Is the state 249 potentially related to the separate load ouput state? What does the Victron App state on the Device List page? All information displayed on the Device list page are fetched via the same method as this library uses.

Fabian-Schmidt avatar Jul 03 '23 14:07 Fabian-Schmidt

Just wondering if it is possible to turn on/off the Smart BatteryProtect (to disconnect the battery) via home assistant (esphome API) or if this is only possible via the Victron app. My apologies for posting questions here.

jsmath avatar Feb 23 '24 02:02 jsmath