-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[ina2xx_base] add doc for reset-on-boot disablement option #5382
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
base: next
Are you sure you want to change the base?
[ina2xx_base] add doc for reset-on-boot disablement option #5382
Conversation
Adds an entry in the documentation of the INA2xx sensor for the new `reset_on_boot` option, which will allow the component to bypass resetting the device state (and hence counters, etc.) on component initialization. Setting this to `false` will allow the counters to persist between ESP device reboots, while setting to `true` (the default) will preserve the existing behaviour of resetting them.
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- **update_interval** (*Optional*, [Time](#config-time)): The interval to check the sensor. Defaults to `60s`. | ||
|
||
- **reset_on_boot** (*Optional*, boolean): Whether or not to reset the device configuration (including counters) on component initialization. Defaults to `yes`/`true`. Set `no`/`false` to preserve counters through ESPHome resets. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove yes and no, just stick to true and false. The line is also a bit long, should put a newline in there like the rest of the file.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Description:
Adds an entry in the documentation of the INA2xx sensor for the new
reset_on_boot
option, which will allow the component to bypass resetting the device state (and hence counters, etc.) on component initialization. Setting this tofalse
will allow the counters to persist between ESP device reboots, while setting totrue
(the default) will preserve the existing behaviour of resetting them.Related issue (if applicable): closes https://github.com/orgs/esphome/discussions/3322
Pull request in esphome with YAML changes (if applicable):
Checklist:
I am merging into
next
because this is new documentation that has a matching pull-request in esphome as linked above.or
I am merging into
current
because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.Link added in
/components/index.rst
when creating new documents for new components or cookbook.New Component Images
If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.
To generate a component image:
Comment on this pull request with the following command, replacing
COMPONENT_NAME
with your component name in UPPER_CASE format with underscores (e.g.,BME280
,SHT3X
,DALLAS_TEMP
):The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.
Extract the SVG file and place it in the
images/
folder of this repository.Use the image in your component's index table entry in
/components/index.rst
.Example: For a component called "DHT22 Temperature Sensor", use: