VXN Energy
I read data from a P1 meter and smart plugs and display the readings on my phone.
Python · HomeWizard API v2 · WebSocket
For my G-STEM final project, I wanted to see when we draw power from the grid and when we feed it back. I set up VXN Energy from scratch, from reading the meter at home to plotting the data in the browser.
A Python program on the local server receives P1 readings over a WebSocket and sends them to VXN over HTTPS. When I open the dashboard, my browser receives new values over a separate WebSocket. The backend stores valid samples for the chart. I can look back and see when power import changed to export.
During an interruption, the meter and browser can lose their connection at different points. I tested reconnection on both sides separately. I can switch off smart-plug telemetry remotely while the energy controls at home keep running.