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
Joe Rouvier
dfe4bc6c84
Add collection startup delay, collect MGM info
...
* Add a startup delay
* Query MGM for it's Mac address, install code and version on startup
* Tell users how to submit a bug report
2022-09-05 00:42:41 -07:00
dailow
b5c7aab03b
Fix negative watt values ( #5 )
...
Handle both 1's complement and signed magnitude methods of expressing negative numbers
Co-authored-by: Joe Rouvier <jrouvier@users.noreply.github.com >
2022-09-04 20:46:31 -07:00
Joe Rouvier
fbb4db543e
Merge branch 'main' of github.com:jrouvier/esphome-emporia-vue-utility into main
2022-02-13 01:36:23 -08:00
Joe Rouvier
4eaeafb289
Change "kwh_produced" to "kwh_returned", it's more accurate
2022-02-13 01:35:31 -08:00
Joe Rouvier
d6310ada86
Updated readme with info about what the LEDs mean
2022-02-13 01:21:42 -08:00
Joe Rouvier
bfc50a44f7
Fix releases url
2022-02-13 01:07:40 -08:00
Joe Rouvier
e7ef3e50a7
Update readme, ask users to download a release
2022-02-13 01:06:57 -08:00
Joe Rouvier
58ba45abc1
Update the watts definition
2022-02-13 00:51:15 -08:00
Joe Rouvier
f2d2cb8be9
Add flashing of onboard LEDs and minor cleanup
2022-02-13 00:45:30 -08:00
Joe Rouvier
16056d43d9
Re-add unit_of_measurement
2022-02-12 22:39:58 -08:00
Joe Rouvier
0e906f7dff
re-add kWh_net to solor config
2022-02-12 22:20:50 -08:00