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
Joe Rouvier
b80c4ca9fc
outputs don't have names
2022-02-12 22:10:14 -08:00
Joe Rouvier
d2075b9271
Update readme to reflect solar / non-solar config
2022-02-12 21:53:15 -08:00
Joe Rouvier
fea702f7df
Changes to handle local energy production
2022-02-12 21:51:03 -08:00
Joe Rouvier
5e0ea4e7c4
Fix P3 pin 5
2022-02-08 22:46:21 -08:00
Joe Rouvier
bc1f89f4ae
Update protocol.md
2022-01-11 00:12:27 -08:00
Joe Rouvier
eef85a70d3
Minor cleanup
2022-01-11 00:11:26 -08:00
Joe Rouvier
4c8285d32f
Fix meter reading response payload
2022-01-10 23:20:23 -08:00
Joe Rouvier
0919368685
Initial Commit
2022-01-10 22:25:20 -08:00
Joe Rouvier
75dfc46883
device images
2022-01-10 19:03:11 -08:00
Joe Rouvier
3ee9764507
Initial commit
2022-01-09 23:02:05 -08:00