New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CS5460A power-meter component #1474
Conversation
d925aef
to
f2b2d0e
Compare
Ok, thanks @glmnet. Doing all the work in After each measurement we schedule STATUS register reads (through SPI) at 0.8x the expected time left until next reading but not less than 30ms. So for example when we expect a new data at T + 1 second, we do an SPI read at: Also added runtime reset logic for when the device gets stuck for 15s, and added the usage of |
c425b3f
to
6030452
Compare
465c6e3
to
73378fe
Compare
CS5460A is a chip that calculates power, RMS current, voltage, energy etc. and communicates over SPI. Easy to buy on a breakout board.
Rebased on esphome/dev, added default device_class params to the sensor_schema() usages and added the CODEOWNERS tag. |
Description:
CS5460A is a chip that calculates power, RMS current, voltage, energy
etc. and communicates over SPI. Easy to buy on a breakout board.
Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#944
Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: