3.5mm Jack for CT. Also the schematic and Demo firmware is available on Github, search formottramlabs. Enter the name of the configuration, such as smart energy meter, and click next one. Flashing ESP32 with ESPHome Flasher via USB Change), You are commenting using your Facebook account. By any chance do you know the new GPIO for this board? Use CTRL-F to find and replace energy_temp with unique values for this specific meter. August 24, 2021 inverted: True Awesome vid! It sounds like you can get ct circuits that have built in protection? name: ${plug_name}_Voltage I have been receiving reports that the Teckin plugs sold in the US now contain an incompatible Realtek chipset. You dont use Docker, Portainer, nor ESPHome ? First we are going to put the software generated with ESPHome to the ESP module. Will it work? If so, switch back to your regular WiFi. restore_mode: ALWAYS_ON Measurement, Although this is a written guide its meant to be used in conjunction with the video I made. Pzem, But your flash memory will thank you! ota: The Home Assistants energy dashboard was introduced with the release of HA 2021.8, making it easy to get insightful information about your daily, monthly or yearly energy usage. cf_pin: GPIO04 Tags: Through the interior of the ring we will have to pass the Phase cable (Black) on which we want to make the measurements, and it may or may not be the same as the one we have used to give current to the circuit. The new firmware will be compiled and uploaded wirelessly. go to the Configuration>Devices and Services> Add integration.
Add at least 10 values and then find the average. i am now planing to do some scripting and use RPI with custom board for 3phases time: api: Press question mark to learn the rest of the keyboard shortcuts. (Works for PC or Raspberry Pi without WiFi), PR10-C Power Meter:http://geni.us/h8kokVq. He chooses Connect this computer. If not, then something is up with your WiFi. 1.2 Amps 245.1 Volts 529.5 Watts Meter: 2.11 Amps Evereything works (including the button press) except for the red LED, maybe someone could figure that out? Other home automation software supporting MQTT can also use this integration. The system collects data in logs and displays it in a meaningful way that you can use further to perform actions, such as sounding an alert or sending notifications on your smartphone or Alexa/Google Assistant for high power usage or when power usage reaches a certain threshold. id: blue_led So make sure to watch that too, in that video I will refer to text blocks which can be found here in this article. SCT-013-050 50A/1V - 15420 First of all, thx for the tutorial, helping me to manage the calibrating process. You would be surprised I was down in Mexico a few years ago on a trip and right on the busy street. For anyone checking got a pack of 4 Gosund Sp1 from amazon.de worked very easy with tuya-convert or rpi3. However, these now seem to be shipped with updated firmware that is not yet supported by tuya-convert. This guide will show you how to do this and how to get everything setup in Home Assistant and Grafana! LED Blue: GPIO13 Wide open meter boxes with exposed terminals. In this guide, you will learn to build a smart energy monitor or smart electricity meter from scratch using the ESP8266 module, such as NodeMCUAnd the ESP32, or D1 MiniAnd the SCT013Non-invasive AC sensor. No updates right now, but the 2.0 method should work on plugs that have the blocked firmware! Comment document.getElementById("comment").setAttribute( "id", "ae13a12ece5cf3ffd936cae4736abd87" );document.getElementById("b61f091a2c").setAttribute( "id", "comment" ); document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); Tuya, the manufacturer of these plugs has taken some preventative measures that make the below mentioned OTA flashing method impossible. Change), You are commenting using your Twitter account. The inspection plate is off of course and the room it is in even has a lock as well that stays locked. multiply: 0.001 platform: gpio multiply: 0.001 then: If we have made the connections well and the line that we are measuring is currently consuming, we will see how the values shown change. # Enable Home Assistant API document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); TMP36 Temperature Sensor + ESP8266 = Not a GreatTeam, High-Side Fan ESP8266 PWM UsingOptocoupler, ESP8266 Controlling 4-Wire CPU CoolingFan. filters: If you want to buy any of these energy meters I would appreciate it very much if you used any of these (affiliated) shopping links! inverted: True Is it possible use these hacked smart plugs within Homekit using Home Assistant?
update There is updated code in which you dont have to replace all the values yourself, check down below for updated code. Thanks OP for a detailed write up. on_press: pin: GPIO2 Because then yes, they try and prevent this method! # Lower value gives lower voltage readout Also Available. # Multiplication factor from W to kW is 0.001 esphome unit_of_measurement: V On Aliexpress, this seller is selling versions pre-flashed to Tasmota, so those can easily be used that way or flashed over to ESPhome (as I show in my guides). Whole home power monitoring with ESPHome - 6 Channels & 2 Channels. I'd been following the CircuitSetup folks on crowdsupply and this video pushed me over the edge and I ordered a 6 channel for myself. name: ${plug_name}_LED_Blue pin: GPIO13 kmc Once that is running and youve entered yes, open a second terminal window or SSH session and run the following to see the wifi log file. Despite having different ways of accessing files on your server, perhaps all of them become somewhat tedious if we are used to browsing through Windows folde January 1, 2022 Or is it a multi-stage flash. SCT-013-030 30A/1V - 9210, SCT-024TSL-B27 200A/100mA - 12597 *(2 chan board, gain_pga = 4X), For the 2 channel board and the 9VAC power supply: # Remember to change the platform and board as appropiate to your ESP module. Now that we have all the software we need, we need to find the names the operation system has given our network cards. But from this blog we have preferred to make our own for very little money and that is also not invasive, that is, it does not require that the line with the current to be measured passes through the device, therefore, its assembly and use is safer. unit_of_measurement: A Thank you for taking the time to talk about the safety required around the energized parts and especially when working with CT circuits. Required fields are marked *. We are going to follow a fairly simple scheme that can be adapted to different needs and assemblies. We are going to need these later on! (LogOut/ board: esp8285 select room (Select the default room if you havent created any rooms yet) and click next one. When I have time Ill try and and make an updated video about it! Cheap Compatible WiFi dongle: https://geni.us/e2oGA password: PASSWORD The logs will display Wi-Fi strength and connection status. The fourth and last video in this series (for now) is going to be how we were able to lower our power usage because of the insight these plugs provided and some automations using Node-Red that can be configured to again, use less power and hopefully, in the end, make these plugs pay for themselves! But why are you copying config from other people, and not the documentation? id: ${plug_name}_Relay Its available for Windows, macOS, and Ubuntu. If you are not experienced, stop here or continue at your own risk. However, the energy_XX_Total Daily Energy in the plug web interface seems to be different from the total usage in Grafana, using the integral and cumulative_sum, like you explained in your video. Thanks Quindor for the extensive video and blogpost! 2020-12 Some version are still flashable, some are not, its becoming harder and harder to identify. I work in high voltage utility and industrial applications and you wouldn't believe the damage an open CT circuit can cause.
power_id: ${plug_name}_Wattage In the search bar, type Homepage Then click Homepage listed under Home Helper Community Additions. at home assistantgo to the Settings and click Add-ons, backup and admin. For those who also have a BW-SHP6 (instead of the BW-SHP2!) you could look at these configurations: The former means we lose some amount of data when we reset, the latter means we lose all the data. Once this is done, turn on the NodeMCU by connecting it to a micro USB power source. platform: gpio password: PASSWORD Save it and click fix. If more things go wrong or nothing seems to happen make sure to take a close look at the other log files also located in the scripts directory, they can give you valuable information what might be wrong. fill(0) in the grouping should help, but doesnt for me. An alternative way to calibrate sensor values You can peel the outer covering from the extension board cable and expose the inner wires. If you are going to power the ESP module with a USB cable and feed the PZEM-004T module from its 5V/VCC and GND pins, check that these pins offer the desired current. There seems to be an issue with calculating the integral on those periods, as InfluxDB has no data at those moments. (LogOut/ If your electricity meter does not display the current value, or you cannot access the meter, follow the next method to calibrate the sensor values. Once the firmware is compiled, click Download project. current_res: 0.00221 You can also add beautiful infographics with Micrograph card integration. ESPHome will compile the code and create the binary or .bin firmware file, like smart energy meter. Ravi is an expert tech explainer, IoT enthusiast and Linux lover with a background in Big Data and Application Development. Did you make it work yet? name: ${plug_name}_Relay voltage_div: 940 41.0mm x 32.1mm x 20mm (if Wemos D1 fitted). The first integration refers to the math, called Riemann sum integral. You can also split the usage into hours. unit_of_measurement: kWh. select file com Port, browse to .Wastebasket Firmware file and then click ESP . switch.toggle: ${plug_name}_LED_Blue This may take some time to complete. Save my name, email, and website in this browser for the next time I comment. To connect SCT013 to ESP32 or NodeMCU, you can buy This unit is on ebay To connect or connect the SCT013 sensor to a D1 Mini, NodeMCU, or ESP32. switch.turn_on: red_led After this startup the software again and follow the instructions. Can confirm this is still working. Should we do our computation on the microcontroller or on the server? 1.2 Amps 252.8 Volts 542.4 Watts Meter 2.11 Amps Dont use someone elses. current: Join our newsletter for free tech tips, reviews, ebooks and exclusive deals! Special mention to @cantavro for his contribution to pay for the materials. According to Tasmota, The Teckin SP23 appears to be a clone of the BlitzWolf SHP2, but I dont see that listed as an option on ESPHome. # Multiplication factor from W to kW is 0.001 go to the main dashboard and click records under Smart energy meter. In my case the adapters where renamed to different names so I had to change them in the config.txt file. pin: GPIO14 sensor: This also allows you to see the activity status of the device, i.e. pin: GPIO1 name: ${plug_name}_Total Daily Energy yaml from CircuitSetup, and can not get it to communicate Then replace the ones in filters The values are as described above. change_mode_every: 8 Once that is uploaded and active I advise you to do some calibration with an external meter. ESPHome provides two parameters to mitigate wear: we could set min_save_interval to a longer duration in order to reduce the number of writes, or we could set restore to false and skip writing entirely. Powered by Discourse, best viewed with JavaScript enabled. ravi singh As always, it can be done by USB or if we already have it previously configured by OTA. Ive got one that I purchased december 2018 and never connected to the app. For now, and for testing. https://community.home-assistant.io/t/esphome-blitzwolf-bw-shp6-configuration/113938/2, Also for those who can give a static IP but face issues with DNS (like it stays temp_flash.local), you can change the name: When I look at the outputs though cf1_pin: GPIO14 In the smart energy meter File and copy and paste This YAML code. on_press: Even replaced the antenna with a external one for better coverage. inverted: True Lots of stuff to coverand Travis does a good job. Your email address will not be published. This will download the .bin firmware file to your computer. He uses a board from CircuitSetup plus an ESP32 with ESPHome. . number: GPIO12 , Energy meters: The Home Assistant lovelace card used is called mini-graph-card and can be found by clicking on the name! I noticed an issue was already opened on the Tuya-Convert project page. But by default it does not reset at midnight, so the number keeps ticking upwards. I have no updated this article for this (this method still works) but Frenck, a colleague has made an excellent article how to use this new method. Make sure to fill in your own WiFi SSID, password and passwords for API and OTA!
To configure the Home Assistant power dashboard, you need to add the sensor to Home Assistant. Doing more processing with this data is on the to-do list.
EU Style: https://geni.us/eSgZi Do you have a working unit? Im looking for an idea to monitor the power consumption of my minipc with HA.