Zendure / developer-device-data-report

Subscribe to device data for Zendure products. To receive information from the device, Developers can obtain the same device information as the official App by subscribing to Zendure MQTT Broker
84 stars 3 forks source link

HomeAssistant Entity #7

Open sirnicolas21 opened 1 year ago

sirnicolas21 commented 1 year ago

current implementation with MQTT API does not support entities so its fairly unusable for energy statics in HomeAssistant for example we cannot add it on battery section or in solar section

a guide on home assistant site says why this happens

https://www.home-assistant.io/more-info/statistics/ https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

z-master42 commented 1 year ago

A sensor is an entity. The problem here is that there is no power over time (W -> Wh). There is a helper for this in the helper section: Integration - Riemann sum integral.