Closed snipah closed 1 year ago
Hi, I have implemented all possible data available in the data (and documented by Victron). Watts current consumption you setup on the device as voltage * amps. I will provide you an example when I am on my computer later today. As for consumed Wh is complex and cannot be done accurately.
The data is only broadcasted and no changes to device settings (eg load ouput) is possible. But you could setup your MPPT rx port as load output enabled and provide the signal from your ESP (binary output) via a cable.
Example calculation of current Watts of shunt:
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Battery voltage"
type: BATTERY_VOLTAGE
id: shunt_BATTERY_VOLTAGE
- platform: victron_ble
victron_ble_id: MySmartShunt
name: "Current"
type: BATTERY_CURRENT
id: shunt_BATTERY_CURRENT
- platform: template
id: shunt_WATT
lambda: |-
const auto voltage = id(shunt_BATTERY_VOLTAGE).state;
const auto current = id(shunt_BATTERY_CURRENT).state;
if(std::isnan(voltage) || std::isnan(current)) {
return NAN;
} else {
return voltage * current;
}
Thanks! Implemented and works like a charm :)
Hi Fabian!
As everything is working great, I'd like to ask some questions:
Thanks a lot for your time and patience!