digiblur / diginrg_esphome Goto Github PK
View Code? Open in Web Editor NEWWhole home power monitoring with ESPHome - 6 Channels & 2 Channels
License: MIT License
Whole home power monitoring with ESPHome - 6 Channels & 2 Channels
License: MIT License
Anyone else experiencing leakage with the Wyze Outdoor Plug ?
Maybe nothing we can do and this is hardware but when I plug a LED controller, it always stays ON.
Anyone measured the leaking current of the relays ?
The example for the 2 channel monitor and the 100A/50ma CTs uses this setting:
gain_voltage: 32428
This results in a voltage reading of 655V for my setup in the US (split phase 240V at 60Hz), throwing all the wattage calculations off by a large margin.
Setting gain_voltage
to 3900 results in a much more sane voltage output of 120.
According to CiricuitSetup's Github
The max value for current that the meter can output is 65.535. If you expect to measure current over 65A,
divide the gain_ct by 2 (120A CT) or 4 (200A CT) and multiply the current and power values by 2 or 4 by uncommenting the filter below
So for measuring and using CT clamps over 65A, gain_pga should be 1X and an additional x2 multiplier is needed under the current sensor to produce a correct reading.
For ease of use for others you may want to edit your readme and add that the following attributes are needed to integrate this into HA new Energy.
state_class: measurement
device_class: energy
last_reset: 1970-01-01T00:00:00+00:00
Check in developers tools and look for the new sensor. If it does not have the three attributes you need to add them in the customize.yaml (if you have this file)
Mine customized section for this sensor is:
sensor.jcpl_house_kwh:
last_reset: '1970-01-01T00:00:00+00:00'
state_class: measurement
device_class: energy
Firstly, thanks for this implemetation, which I've now been using for a couple of months.
However, I have one remaining issue, which is proving a real pain to resolve.
I have a sensor which is calculated by subtracting one clamp from another.
Unfortunately the clamps in question are on different chips of the board, which don't update at the same time.
This means that it's possible for the calculated sensor to be a negative value. Hopefully the below screen grab from Grafana will clearly show the issue.
Total (CT1) = Incoming cable from the grid
Ground & 1st Floors (CT6) = Cable into primary fuse board
2nd Floor (calculated) = Should be what my separate fuse board, for the 2nd floor, is consuming. Total - Ground & 1st Floors.
I don't have a spare channel (using all 6) to actually clamp on to the cable into the secondary fuse board, which services the second floor.
Is there any way to ensure sensors on both channels/chips publish at the same time please?
Many thanks.
It seems that while the splitcore implimentation of atm90e32as impliments power factor and reactive power for each phase, these are not available on the 6 channel version. My understanding is they both utilise the same chip (atm90e32as) and hense both reference the same registers over spi, but for some reason the registers are not available on the 6 channel version?
Ive included a log printout from esphome along with the added lines of code to include the reactive power and power factor into the yaml;
`sensor:
gain_ct: 25753`
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Dependency Graph
|-- 1.1.1
|-- 1.0
| |-- 1.0
|-- 1.0
|-- 1.2.6
| |-- 1.1.1
| |-- 1.0
| |-- 1.0
| |-- 5.13.3
|-- 5.13.3
|-- 1.0
|-- 1.0
|-- 1.0
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/src/main.cpp.o
Archiving /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib715/libAsyncTCP-esphome_ID6798.a
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiClient.cpp.o
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiGeneric.cpp.o
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiMulti.cpp.o
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiSTA.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:597:31: error: 'class esphome::atm90e32::ATM90E32Component' has no member named 'set_react_pow_sensor'
atm90e32_atm90e32component->set_react_pow_sensor(0, ic1ReactivePower);
^
src/main.cpp:609:31: error: 'class esphome::atm90e32::ATM90E32Component' has no member named 'set_pf_sensor'
atm90e32_atm90e32component->set_pf_sensor(0, ic1PowerFactor);
^
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiScan.cpp.o
Compiling /data/mcu_powermeter/.pioenvs/mcu_powermeter/lib789/WiFi/WiFiServer.cpp.o
*** [/data/mcu_powermeter/.pioenvs/mcu_powermeter/src/main.cpp.o] Error 1
========================== [FAILED] Took 5.88 seconds ==========================`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.