I wasn’t comparing the both solutions but just pointing out that it is enough to have the HA app as this sends various battery states to HA and allows to limit charge/discharge that way without any third party (closed source) software.
Beside (as mentioned before in other threads) it should be also possible to set (dis)charge limits directly on the phone/device (if the user has sufficient rights over their device)