Smart Meter Quick Start Guide
I will run through the procedure I take as soon as I have provisioned an ESP8266 with the ESPproMon cloud based server. Unless I say otherwise on this site I will be referring to a WeMos D1 Mini and a Pzem-004 but the other ESP’s and metering hardware should be very similar.
The blue LED should provide a very, very faint pulse every 5 seconds after provisioning. You have to look very closely for the pulse but it should be there. Just to say that if an ESP has been flashed and not provisioned this faint pulse will be at 1 second intervals.
If I reboot an ESP through the app or via the PSU I generally have the tariff window open because it provides information that it has collected from the server within the terminal window, such as your preferred hardware, currency, last RF and Relay status conditions etc.
Setup page, select my currency (normally I select Yen / Yuan because I know I will be taking more screenshots soon for the enormous market in the Far East). Stored on the server and you shouldn’t need to set this again unless there is an app update.
Set slider / step widget for calibration of Pzem to physical electric meter at -3 (%) as I know my Pzem runs about 3% higher than my electric meter. You will need to set this to 0% until you get some data to work with. It does currently need setting by you as the default slider position is -9 (%). We could code up a 0% but the more we code up during the boot phase the more likely you are to miss critical parameters on the server. And in any case again it’s just a one time requirement unless there is an app update.
I select 01 Peacefair Pzem hardware from setup page and I think the very first time it will say something like make a selection if it’s the first time you have been beyond provisioning. With all the drop down menus in the app you need to actually select the parameter and then OK to register your selection i.e. what appears in the app what the last setting which could be before a reset and the server might not know which parameter you selected prior to reboot. Once a parameter has been selected after a reboot you can keep changing the values by typing in the terminal and you should see a confirmation of the request you made i.e. you wouldn’t need to keep selecting the parameter over and over again.
My preferred RF device is an N38HN RF controlled mains socket and I select parameter 17 for N38HN channel 1 device 3 from the RF device drop down menu. There aren’t too many RF devices within the firmware at present as we are wanting users to make recommendations for their preferred RF controlled devices. Over the last few years we have worked with quite a few devices but don’t expect us to cover the rarest of devices as this is a generic app for the masses and not tailored to your precise requirements. Some features are specific to you but it wouldn’t be possible to cover every RF controlled ever produced.
I then jump over to the info page and press the RF ON / OFF button. It should always show the last status condition known to the server when the ESP reboots. First ever boot will be RF OFF condition but this retrieval of the status means that if you have a brownout your RF controlled device will be in your chosen state when the ESP reboots. I will normal try ON, visually check the RF device comes on if I am local to the device or check one of the video streams if I am “on the road”. Then I will power the RF device off and check terminal which will state the RF ON and OFF times.
Final step is normally to check the map is showing my current location on the setup page and if Google sends a location services request I accept it.
I’m done, and even though it takes 30 minutes to write this you will have it done in a few seconds with a bit of practise
There are some more steps but that’s more than enough for the quick start guide.