Victor Chang
b47be0769f
Support MeterDiv involvement in Watt calculation.
2024-06-13 23:55:03 -07:00
Victor Chang
5ac97c9e90
Update the doc about the error message payload.
2024-06-12 23:49:08 -07:00
Victor Chang
556e2fc476
Advise to move device closer to the meter if 'e'-type message.
2024-06-12 23:40:57 -07:00
Victor Chang
cd4c6c97ab
Merge pull request #1 from visualage/main
...
Add Arduino.h for digitalWrite
2024-06-09 17:47:42 -07:00
Victor Chang
2e098f3f65
Actually save the file.
2024-06-09 15:38:41 -07:00
Victor Chang
678a56ab03
Create sample YAMLs that use the external component and update README.
2024-06-09 15:36:17 -07:00
Qi Liu
bd896bcfb5
Add Arduino.h for digitalWrite
2024-06-09 09:09:04 -07:00
Victor Chang
fc6676e197
Move the Custom Component files to a legacy folder.
2024-06-08 22:54:26 -07:00
Victor Chang
0ed07460f8
Expose debug mode in the YAML and have debug output for V7+.
...
Can add `debug: true` to the YAML to enable.
2024-06-08 02:01:16 -07:00
Victor Chang
6bd100481f
Fix code scope.
2024-06-08 02:01:16 -07:00
Victor Chang
63434eaefc
Use the update() function to send meter requests.
2024-06-08 02:01:16 -07:00
Victor Chang
148fb80440
Solved incessant update() call rate.
2024-06-08 02:01:16 -07:00
Victor Chang
2aac3047ef
Add MGM info to dump_config().
2024-06-08 02:01:16 -07:00
Victor Chang
77f356f72a
Undo formatter flub.
2024-06-08 02:01:16 -07:00
Victor Chang
b3d1a1fda4
Formatted.
2024-06-08 02:01:16 -07:00
Victor Chang
2e0c6f853a
MVP: Works for me! Not idiomatic yet.
2024-06-08 02:01:16 -07:00
Victor Chang
ebc649adea
WIP Tried flashing and nothing seems to happen during runtime.
...
The "Time jumped back" code is also incompatible for now, TBD what's
going on.
2024-06-08 02:01:16 -07:00
Victor Chang
3a96f0a103
WIP Potentially functional code but sensor.py not complete.
...
Still very much not idiomatic to the External Component format.
2024-06-08 02:01:16 -07:00
Victor Chang
254e35efdd
Some more stubbed stuff.
2024-06-08 02:01:16 -07:00
Victor Chang
72def8c8f9
Initial external component commit.
2024-06-08 02:01:16 -07:00
Victor Chang
4c125f7e9d
Replace another link and add some version labeling.
2024-06-08 01:52:35 -07:00
Victor Chang
a64563c7fc
Adopt the EnergyCostUnit documented theory from V2 into V7.
2024-06-04 23:51:57 -07:00
Victor Chang
54fd1242f7
Add a couple static bytes to the V7+ payload documentation.
2024-06-04 23:30:24 -07:00
Victor Chang
4873672506
Change the bug report text to just link to the forum thread.
2024-06-02 22:12:58 -07:00
Victor Chang
cbe6e974fc
Format python tool.
2024-06-02 22:03:47 -07:00
Victor Chang
d108b4f8d1
Merge remote-tracking branch 'upstream/main'
2024-06-02 22:03:32 -07:00
baudneo
b527e8455f
Fixes an issue in esphome 2023.12.x where time() will raise an error. Use ::time() instead. ( #15 )
...
Co-authored-by: Joe Rouvier <jrouvier@users.noreply.github.com >
2024-01-28 18:41:08 -08:00
baudneo
877526fed4
Fix MQTT id attribute ( #12 )
...
* Update vue-utility.yaml
mqtt id attr doesnt accept dash '-', need underscore '_'.
* Update vue-utility-solar.yaml
mqtt id attr doesnt accept dash '-', needs underscore '_'.
2024-01-28 18:40:03 -08:00
jgruen
44a0050cf1
Handle time going backwards, and net consumption never going decreasing ( #11 )
...
* Add W_consumed and W_returned Sensors for solar
If a solar customer is not yet on _net metering_, then the kWh_net
Sensor will never decrease (i.e., meter does _not_ run
backwards). This means that kWh_returned will always be zero, even
though power _is_ flowing back to the grid (though the customer is not
being credited for it).
For visualizing in e.g. Home Assistant's Energy dashboard, we
therefore export the Watts flowing in either direction (to or from the
grid) so that integral helpers/sensors/entities can be used to show
the _actual_ energy flow to and from the grid (again, even though the
customer is not being credited (yet?) on the meter / bill).
* disambiguate `time()` if e.g. using the ESPHome `time` component
* handle time jumping backwards
2024-01-28 18:39:50 -08:00
Victor Chang
21b4753cbd
Fix the calculation for "net".
2024-01-27 23:30:09 -08:00
Victor Chang
4a9adb7615
Handle erroneous watt-hour values.
2024-01-14 20:22:38 -08:00
Victor Chang
46480433de
Expose Wh values and allow yaml to specify poll rate.
...
Also handle duplicate meter read responses.
2024-01-13 02:29:52 -08:00
Victor Chang
d1f0759b8f
Fix handling negative net watt-hours.
2024-01-12 19:01:35 -08:00
Victor Chang
6a25081e6d
Clarifying comments.
2024-01-12 00:13:07 -08:00
Victor Chang
1557fecdf8
Support watt-hours from V7.
2024-01-11 23:43:43 -08:00
Victor Chang
8ca82b4f5c
Apply same fix as in:
...
https://github.com/jrouvier/esphome-emporia-vue-utility/pull/15
2024-01-11 22:33:03 -08:00
Victor Chang
b0e38c1faa
Watt-hour fields are actually (at minimum) 4 bytes.
...
Firmware v8 has an "e"-type message of unknown purpose.
2024-01-11 22:30:55 -08:00
Victor Chang
5ade21f0de
Documented the message sent when holding the reset button.
...
Also dug into what the "meter join" response value should be.
2023-12-27 15:38:04 -08:00
Victor Chang
815b9a4726
Fix my off-by-one count.
2023-12-09 20:57:13 -08:00
Victor Chang
03bb000e27
Add a tool I used during my reverse engineering.
2023-12-09 20:07:50 -08:00
Victor Chang
46a7ab081e
Update README.
2023-12-09 16:33:06 -08:00
Victor Chang
94773024f1
Update the docs about the V7 payload.
2023-12-09 16:28:27 -08:00
Victor Chang
39b97f15ba
Support MGM Firmware v7 instant watts.
2023-12-09 13:18:20 -08:00
Joe Rouvier
f54c3f54a3
Update pinout.md
2022-12-27 18:50:49 -08:00
Joe Rouvier
f31b7cf3d4
Should multiply watt_hours by meter_div, not divide
2022-12-12 19:09:38 -08:00
Joe Rouvier
406417f138
Bug in kwh_returned value
2022-12-12 19:06:05 -08:00
Joe Rouvier
8663818b12
Add handling of meter divisor field, logging cleanup
2022-09-07 10:12:02 -07:00
Joe Rouvier
fb83e917a5
Update protocol.md
2022-09-05 18:24:16 -07:00
Joe Rouvier
d051a552a8
Update protocol-meter-reading.md
2022-09-05 18:18:00 -07:00
Joe Rouvier
b76c6e12f4
Create protocol-meter-reading.md
2022-09-05 18:14:16 -07:00