If you are still interested in doing this, please check out my recent php script. I am also reading a temperature sensor. https://mresoftware.com/Coolkit_API.htm
Great stuff! But still when you want to fetch live voltage, power and currentyou need to use websockets connection and ping the device, its known issue in HA and other implementations.