Skip to content
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

Update athom-smart-plug-v2.yaml - Add additional Energy Statistics #66

Closed
wants to merge 9 commits into from

Conversation

Roving-Ronin
Copy link

@Roving-Ronin Roving-Ronin commented Jul 1, 2024

  • Update project version number.
  • Update SNTP update interval to use substitution to set, that was overlooked previously.
  • Update SNTP to define pool.ntp.org servers to use, can be changed to country/region pool servers in substitutions.
  • Make log level changeable using value declared in substitutions.
  • Add Energy Yesterday, Weekly, Monthly sensors (provided by https://github.com/dentra/esphome-components/tree/master/components/energy_statistics - if preferred the component could be copied to Athom Repo instead)
  • Amend 'Total Daily Energy' sensor to 'Total Energy Today' to keep in line with 'Total Energy Yesterday/Week/Month' ('Total Yesterday Energy' is incorrect grammar and stops the use of that format).
  • Amend 'Energy' sensor to be 'internal', as serves no purpose, has no timeframe associated with it and resets at boot & reflashing. Made changeable via hide_energy_sensor subsitution (true/false).

Edit: Noticed the the Smart Plug (i.e. v1) hasn't been updated for ages, so have updated to bring it up to the same base code / sensors available, as the v2 and v3 plugs.

- Update project version number.
- Update SNTP update interval to use substitution to set, that was overlooked previously.
- Update SNTP to define pool.ntp.org servers to use, can be changed to country/region pool servers in substitutions.
- Make log level changeable using value declared in substitutions.
- Add Energy Yesterday, Weekly, Monthly sensors (provided by https://github.com/dentra/esphome-components/tree/master/components/energy_statistics - if preferred the component could be copied to Athom Repo instead)
- Amend 'Total Daily Energy' sensor to 'Total Energy Today' to keep in line with 'Total Energy Yesterday/Week/Month'  ('Total Yesterday Energy' is incorrect grammar and stops the use of that format).
- Amend 'Energy' sensor to be 'internal', as serves no purpose, has no timeframe associated with it and resets at boot & reflashing. Made changeable via hide_energy_sensor subsitution (true/false).
@Roving-Ronin Roving-Ronin changed the title Update athom-smart-plug-v2.yaml Update athom-smart-plug-v2.yaml - Add additional Energy Statistics Jul 1, 2024
…v3-Baseline

Update athom-smart-plug.yaml - To same code level as v2 & v3 plugs
@dexn dexn mentioned this pull request Jul 3, 2024
@Roving-Ronin
Copy link
Author

@tarontop Aiden,

FYI here is example of what additional sensors provide / appear like.

image

@tarontop tarontop closed this Aug 16, 2024
@Roving-Ronin Roving-Ronin deleted the patch-1 branch August 16, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants