Hello Folks! Welcome to Our Blog.

The physical setup. See part 1. Now how to put the who together an not have pieces hanging everywhere? The very temporary cover for the breaker box, the real thing is incidentally an OPEN plastic box. The wood was very generously doused in sealant as well as the screws to prevent rot. I was thinking that doing something like this would be a nice next step. Looking around I saw a nice graph style interface with node red so I installed node red as an accompaniment for hassio just as the Dr ZZs video about just that came out.

This following video has the nice graphs with the node red dashboard. Once flash complete with remaining sonoff settings changing the board type to nodemcu the upload went well. The beauty of tasmota is the pzem already had support. Given my recent habit of looking for a quick answer on YouTube I neglected the tasmota wiki. As I was in the dark about how to proceed and as my DHT humidity and temperature sensor was still attached with mods I decided to activate it in the tasmota menu, and adding the entry in the configuration.

The link on the tasmota page for versions newer than 5. With many variables I decided to change all of them incrementally to test every permutation of code as possible.

Then I got lucky with the AMP sensor. It worked but only displayed the A value, using this and the working example for the temperature and humidity I crafted a new entry for extracting the Current, Voltage, Amps etc. See below for code. One problem I encountered was the slow update time of the information.

The humidity and temperatures were updating by the second whereas the power updates were every seconds. Changing that to 10 seconds made everything so much better and useable.

Typing this I found the info online. So my efforts were… a confirmation. PZEM in configuration. Connected one end of a cable from both Terminals of the off side of the circuit breaker.Add the following snippet to your HTML:. Read up about this project on. This basic version is for apparent power only.

To keep component count low and the circuit as simple as possible the ADS is used in differential mode eliminating the need for bias resistors. The hard part is getting a licensed electrician to wire up the clamp on current sensor to the main wire coming into the premises. Since we have only 1 channel we are going to monitor overall power rather than power per circuit.

Follow the Fritzing diagram below to wire up the prototype on a breadboard. Powering the NodeMCU near the switchboard might be an issue as well, so I installed a DIN rail power socket, this will come in handy for real power measurement later on. I chose to use the Arduino IDE to program the NodeMCU due to the easy availability of relevant libraries and my personal familiarity with the platform. You can get started quite easily using the latest incarnation of the Arduino IDE and the instructions here.

The code running on it for basic apparent power is available here. This is adapted from the great Emonlib source.

Connecting to Thingspeak makes it easy to plot the current and save the data being gathered continuously. Create an account and fill in the API key in the Arduino sketch above. Using a 12V DIN-Rail transformer real power can be measured as long as loading power-factor issues are calibrated. The Fritzing diagram below shows how this may be achieved. The NodeMCU can be powered in this setup using a bridge rectifier as shown.

When wired up in this mode, various other variables including power-factor, true and apparent power and line voltage are also measured. The sketch to upload true-power to Thingspeak can be found here.

After prototyping on the breadboard and making sure everything is working, we can transfer the design to a PCB. I have made the Schematic and PCB available here.

I will iterate through the design and update them as I progress. Improvements can be made by putting in a drop-in replacement for thesuch as the Murata and by adding a Hz Lowpass or Bandpass filter to suppress any noise in the measurements. The final assembled system is now complete and available on Tindie. Log in Sign up. Tisham Dhar. Intermediate Full instructions provided 2 hours 70, Things used in this project.

Hardware components 2. I am an Electronics Engineer who mostly works with aerial and space based remote sensing projects. I fiddle with home automation and renewable energy projects. Follow Contact Contact. Related channels and tags energy efficiency energy monitor monitoring.Using the Sleep command you can instruct Tasmota to sleep for the set milliseconds in its main cycle. While sleeping your device will consume less power.

Dynamic Sleep is enabled by default with a value of To continue using Normal Sleep you may disable it by using the command:. With this setting you have to concentrate very hard to click the button so fast that it is not recognized by the device.

If your device needs to do something continuously, this will be affected. Spot readings of power, voltage, etc. Notes: - Starting with Tasmota 6. The first impression is that a higher sleep value reduces the consumption, but only slightly. To find out why Sleep reduces the power consumption and how its value should be set, the current of the 3. This measurement simplified the measure of a time based power consumption; no integration must be done. On the other side note that the quantity measurement does not respect the effectiveness of the complete device circuit.

Due to the fact that the Tasmota main loop now calls delay even with 1ms it seems it results in periodically ms enabling the WiFi Modem Sleep mode within the WiFi Manager library. As already noticed with Sleep the number periods having mA instead of mA increase again:.

Skip to content. Energy Saving Using the Sleep command you can instruct Tasmota to sleep for the set milliseconds in its main cycle.Having energy monitoring technology built-in to let you know how much the real-time energy your appliances are using via the eWeLink app.

tasmota energy monitoring

Away from home? Set your phone or tablet as a home hub to control devices you plug in the POWR2 switch remotely. Seamlessly compatible with Amazon Alexa and Google Assistant, turn on or off your appliances with your voice command, release your hands. Worry that there are a ton of connected devices posing serious threats if left unattended. Now, you totally get rid of the troublesome. They will automatically turn off at a scheduled time as long as you set a timer on the app.

Power Voltage 0. Current Safety Goes with You, Always Features the overload protection, which allows you to set the real-time power, voltage and threshold current. Once beyond the set value, it will automatically turn off to ensure your devices are secure.

Energy Saving

Share devices with your family, sync status of devices, allow you to set more smart scenes for any space and work with IFTTT, designed to simplify your home, smarten your life.

POWR2 Smart Switch Having energy monitoring technology built-in to let you know how much the real-time energy your appliances are using via the eWeLink app. Take Control From Afar Away from home? Limited Time for Unlimited Peace of Mind Worry that there are a ton of connected devices posing serious threats if left unattended.

$25 DIY "Smart" Door Locks - ElectroMagnet + Sonoff + Tasmota

Boil water. Make coffee. Turn water heaters on. Turn lights off. Safety Goes with You, Always Features the overload protection, which allows you to set the real-time power, voltage and threshold current. Forgot your password? Registration is free and easy! Faster checkout Save multiple shipping addresses View and track orders and more Create an account.Add the following snippet to your HTML:.

Energy Saving

In this application we will setup a CE current monitor with a Raspberry Pi and display current readings for circuits through a web interface. Read up about this project on. In this Article we are going to monitor the energy consumption current of some circuits in a home or business through Raspberry Pi. The Raspberry Pi will connect to a 12 channel current monitoring board from www. This will allow us to see how much a particular circuit is drawing in real time from any device on the network with a web browser.

The web interface we will put together here is a no frills interface. It will just show you current readings in black and white for each circuit.

tasmota energy monitoring

Feel free to edit the web interface and pretty it up in any way you see fit. Maybe even label each circuit on the interface like Living Room lights, Refrigerator, etc. First we need to get our Raspberry Pi all setup and ready to go.

For this project I am running the current latest version of Raspbian on my Pi Jessie. All provided instructions are based on that fact.

If you have another version of Raspbian or another Linux OS all together keep in mind some alterations to proceeding instructions may differ for you. Raspberry Pi provides some great instructions on getting Raspbian installed on your Pi here. Once your Pi is booted up and running we will start by connecting to it via SSH. Instructions for connecting to your Pi over SSH provided here.

Default username is generally pi and password is raspberry. The first thing we are going to do is install Apache which is a web server that will serve our web interface to the user.

To do this enter the following in the SSH terminal:. This should install Apache on your Raspberry Pi. The cool thing is after this installation runs it works! Open a web browser on your computer and enter the IP address of the Pi. You should be greeted by the default web page. Next there are a few settings in Apache we need to modify so lets pop the hood.

tasmota energy monitoring

Back in your SSH terminal to the Pi enter the following:. This will open up a file that we need to add some info to. Scroll down until you see some directory tags. We need to add an additional one there that says this:. When prompted to save say yes. When prompted to enter file name leave it as is. This will update the apt-get package installer so we can be sure we get the latest packages. After that package is installed it is a good idea to reboot the pi so in the SSH terminal enter:.

Wait a few seconds for the Pi to reboot and re-associate with the network, then re connect to the Pi via SSH.Available from: Amazon. Connecting serial with your PC will fry your PC. Do not connect any additional sensors to serial pins. It can at least destroy your Shelly!

Check the correct jumper position before connecting AC power to Shelly 1. If the jumper is set to 12V you will destroy your Shelly! The following diagram shows the device pinout and power source voltage selection jumper. Tasmota will disable serial logging after a restart as the communication between Tasmota and the Energy Monitoring chip is using the same serial interface.

Make sure not to enable SerialLog as it will interfere with the Energy Monitoring functionality. To calibrate the Energy monitoring feature connect a known load and execute the commands shown below. Pause a few seconds between executing the commands as the communication between Tasmota and the Energy Monitoring chip is a serial interface which can take over a second to complete.

Devices by Type Bulbs by Name. Add new template When purchasing through supported device affiliated links you support this site!

ESP8266 IoT Energy Monitor

Edit on GitHub. For more accurate energy consumption measurements this device requires power monitoring calibration. Template requires Tasmota 6. FrequencySet Led1i GPIO None GPIO Switch1n GPIO Relay1 GPIO None FLAG.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Only use a Shelly as designed. Connecting serial with your PC will fry your PC. The following diagram shows the device pinout.

Tasmota will disable serial logging after a restart as the communication between Tasmota and the Energy Monitoring chip is using the same serial interface. Make sure not to enable SerialLog as it will interfere with the Energy Monitoring functionality. To calibrate the Energy monitoring feature connect a known load and execute the commands shown below.

Pause a few seconds between executing the commands as the communication between Tasmota and the Energy Monitoring chip is a serial interface which can take over a second to complete.

Skip to content. Permalink Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. Branch: master. Find file Copy path. Cannot retrieve contributors at this time.

Raw Blame History. The Shelly 1PM is supported from Tasmota 6. FrequencySet You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.


Comments

Leave a Reply

Tasmota energy monitoring
Add your widget here