Victor Chang
475044ffbf
Update syntax for esp-idf.
...
Apparently esp-idf will be required by ESPHome 2026.1.0, so just making
the switch to esp-idf now.
The syntax change appears to still work with Arduino as well.
2025-08-29 15:44:00 -07:00
Qi Liu
80b501fe46
Use pinMode to configure GPIO pins ( #8 )
...
After upgrading to esp32 Arduino 3.1.3, gpio_pad_select_gpio is no longer exposed.
2025-07-16 21:00:47 -07:00
jgruen
e21d0cee83
Avoid using wall time in case it jumps. ( #3 )
...
Instead, use std::chrono's steady_clock.
2025-01-07 00:40:27 -08:00
Victor Chang
10175e349b
Minimal changes to work with ESP-IDF.
2024-10-22 21:49:41 -07:00
Victor Chang
0e04ac2836
Fix some minor things.
2024-10-22 21:44:45 -07:00
Victor Chang
f1126d5553
Apply meter divisor calculation to all spots in V2 and V7.
2024-06-17 00:00:05 -07:00
Victor Chang
b47be0769f
Support MeterDiv involvement in Watt calculation.
2024-06-13 23:55:03 -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
Qi Liu
bd896bcfb5
Add Arduino.h for digitalWrite
2024-06-09 09:09:04 -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