Commit Graph

31 Commits

Author SHA1 Message Date
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
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