Emulates a Home Battery device for the Homey Energy Tab. It does what some battery devices fail to do - correctly set the Energy Tab settings values. Unreal Battery does not obtain its data directly from your physical battery, but by being fed data from other Homey devices through a flow. If your battery device gives you everything you need in the Energy Tab, you DON'T need an Unreal Battery!
The Update Unreal Battery flowcard takes capability values from other devices (Battery SOH, Battery SOC, Battery Temperature and Power). It integrates these values into a single Unreal device giving Total Energy In and Out, Daily Energy In and Out and Round Trip Efficiency in addition to capabilities tracking the four parameters on the flowcard.
For the flow you need just two cards. Any WHEN flow card can be used as the trigger for the battery update. The Unreal Battery manages its own timebase, calculating the interval between successive events in order to correctly integrate the new power value. An ideal choice is WHEN <power> CHANGES - where <power> represents the capability recording power received or dispatched by the battery.
Use the Unreal Battery device in your Energy Tab in place of your actual battery device and the values shown on the Energy Tab will fully reflect the performance of your battery. Values shown on the Energy Tab are battery power (charging or discharging) and battery energy (net, charging or discharging).
Unreal Battery correctly includes itself in Energy. You may end up with two batteries in the Energy Tab - simply change the settings of the battery you do not want included to "exclude from energy = Yes".
This simple app could be replaced relatively simply by an Advanced Virtual Device (AVD). BUT at the time of writing the AVD does not correctly set the Energy Tab settings, so does not meet the express goal of this app.
Alongside the Unreal Battery device is the Power Integrator. This device takes as input a stream of power readings and integrates those values over time to accumulate energy. Two energy capabilities are defined - cumulative and daily. The device is driven by a flow that collects the power values from one device and delivers them into the Power Integrator.
자세히 읽기 ›