{"id":26224159,"url":"https://github.com/andrew-codechimp/ha-periodic-min-max","last_synced_at":"2025-10-19T08:58:24.818Z","repository":{"id":281867976,"uuid":"945419767","full_name":"andrew-codechimp/HA-Periodic-Min-Max","owner":"andrew-codechimp","description":"Periodic Min/Max helpers for Home Assistant","archived":false,"fork":false,"pushed_at":"2025-09-25T13:36:12.000Z","size":1116,"stargazers_count":51,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-25T15:35:14.283Z","etag":null,"topics":["hacs","hacs-integration","home-assistant","homeassistant","homeassistant-custom-component","homeassistant-integration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrew-codechimp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"andrew-codechimp","buy_me_a_coffee":"codechimp"}},"created_at":"2025-03-09T11:34:18.000Z","updated_at":"2025-09-22T17:43:05.000Z","dependencies_parsed_at":"2025-03-11T15:49:01.017Z","dependency_job_id":"5bff4ec5-f18f-4f8d-be50-aaa6b0cefa2c","html_url":"https://github.com/andrew-codechimp/HA-Periodic-Min-Max","commit_stats":null,"previous_names":["andrew-codechimp/ha-periodic-min-max"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/andrew-codechimp/HA-Periodic-Min-Max","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-codechimp%2FHA-Periodic-Min-Max","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-codechimp%2FHA-Periodic-Min-Max/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-codechimp%2FHA-Periodic-Min-Max/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-codechimp%2FHA-Periodic-Min-Max/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrew-codechimp","download_url":"https://codeload.github.com/andrew-codechimp/HA-Periodic-Min-Max/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-codechimp%2FHA-Periodic-Min-Max/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279760816,"owners_count":26222502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacs","hacs-integration","home-assistant","homeassistant","homeassistant-custom-component","homeassistant-integration"],"created_at":"2025-03-12T18:18:29.743Z","updated_at":"2025-10-19T08:58:24.813Z","avatar_url":"https://github.com/andrew-codechimp.png","language":"Python","funding_links":["https://github.com/sponsors/andrew-codechimp","https://buymeacoffee.com/codechimp","https://www.buymeacoffee.com/codechimp"],"categories":[],"sub_categories":[],"readme":"# HA-Periodic-Min-Max\n\n[![GitHub Release][releases-shield]][releases]\n[![GitHub Activity][commits-shield]][commits]\n[![Downloads][download-latest-shield]]()\n[![HACS Installs][hacs-installs-shield]]()\n[![License][license-shield]](LICENSE)\n[![hacs][hacsbadge]][hacs]\n\nPeriodic Min/Max Helpers for Home Assistant\n\nThe helpers record the minimum or maximum of a sensor until manually reset via the reset action. The value is maintained through HA restarts.\n\nA `last_modified` attribute is available to check when the min or max was really changed, this attribute does not update on HA restarts giving you an accurate indication on when the new min or max was hit. This can be useful for using as a trigger on an automation or for comparing via a template for a daily update. The attribute is in UTC.\n\n## Example use cases\n\n- Record the maximum temperature today, resetting at midnight via an automation.\n- Record the peak solar energy produced ever, reset when you upgrade your solar installation.\n\n_Please :star: this repo if you find it useful_  \n_If you want to show your support please_\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/codechimp)\n\n![Helper Creation](https://raw.githubusercontent.com/andrew-codechimp/ha-periodic-min-max/main/images/helper-create.png \"Helper Creation\")\n\n![Reset Action](https://raw.githubusercontent.com/andrew-codechimp/ha-periodic-min-max/main/images/action-reset.png \"Reset Action\")\n\n## Tips\n\nIf you have many sensors you want to reset daily, create a label called daily reset, add the label to each sensor you want resetting, then create one automation that resets all sensors with that label at midnight.\n\n```\nalias: Periodic Reset Daily at Midnight\ndescription: \"\"\ntriggers:\n  - trigger: time\n    at: \"00:00:00\"\nconditions: []\nactions:\n  - action: periodic_min_max.reset\n    target:\n      label_id: daily_reset\n    data: {}\nmode: single\n```\n\nTo tell whether a new min or max has been achieved in the last 24 hours use this template\n\n```\n{{ (utcnow() - as_datetime(state_attr(\"sensor.my_sensor\", \"last_modified\"))).total_seconds() \u003c 86400 }}\n```\n\n## Installation\n\n### HACS\n\n[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=andrew-codechimp\u0026repository=HA-Periodic-Min-Max\u0026category=Integration)\n\nOr search for **Periodic Min/Max** within HACS if My Home Assistant does not work for you\n\nRestart Home Assistant\n\nIn the HA UI go to \"Configuration\" -\u003e \"Devices \u0026 services\" -\u003e \"Helpers\" click \"+\" and select \"Periodic Min/Max\"\n\n### Manual Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eShow detailed instructions\u003c/summary\u003e\n\nInstallation via HACS is recommended, but a manual setup is supported.\n\n1. Manually copy custom_components/periodic_min_max folder from latest release to custom_components folder in your config folder.\n1. Restart Home Assistant.\n1. In the HA UI go to \"Configuration\" -\u003e \"Devices \u0026 services\" -\u003e \"Helpers\" click \"+\" and select \"Periodic Min/Max\"\n\n\u003c/details\u003e\n\n## Usage\n\nA new Periodic Min/Max helper will be available within Settings/Helpers or click the My link to jump straight there\n\n[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=periodic_min_max)\n\n### Translations\n\nYou can help by adding missing translations when you are a native speaker. Or add a complete new language when there is no language file available.\n\nPeriodic Min/Max uses Crowdin to make contributing easy.\n\n\u003cdetails\u003e\n\u003csummary\u003eInstructions\u003c/summary\u003e\n\n**Changing or adding to existing language**\n\nFirst register and join the translation project\n\n- If you don’t have a Crowdin account yet, create one at [https://crowdin.com](https://crowdin.com)\n- Go to the [Periodic Min/Max Crowdin project page](https://crowdin.com/project/periodic-min-max)\n- Click Join.\n\nNext translate a string\n\n- Select the language you want to contribute to from the dashboard.\n- Click Translate All.\n- Find the string you want to edit, missing translation are marked red.\n- Fill in or modify the translation and click Save.\n- Repeat for other translations.\n\nPeriodic Min/Max will automatically pull in latest changes to translations every day and create a Pull Request. After that is reviewed by a maintainer it will be included in the next release of Periodic Min/Max.\n\n**Adding a new language**\n\nCreate an [Issue](https://github.com/andrew-codechimp/HA-Periodic-Min-Max/issues/) requesting a new language. We will do the necessary work to add the new translation to the integration and Crowdin site, when it's ready for you to contribute we'll comment on the issue you raised.\n\n\u003c/details\u003e\n\n---\n\n[commits-shield]: https://img.shields.io/github/commit-activity/y/andrew-codechimp/HA-Periodic-Min-Max.svg?style=for-the-badge\n[commits]: https://github.com/andrew-codechimp/HA-Periodic-Min-Max/commits/main\n[hacs]: https://github.com/hacs/integration\n[hacsbadge]: https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge\n[exampleimg]: example.png\n[license-shield]: https://img.shields.io/github/license/andrew-codechimp/HA-Periodic-Min-Max.svg?style=for-the-badge\n[releases-shield]: https://img.shields.io/github/release/andrew-codechimp/HA-Periodic-Min-Max.svg?style=for-the-badge\n[releases]: https://github.com/andrew-codechimp/HA-Periodic-Min-Max/releases\n[download-latest-shield]: https://img.shields.io/github/downloads/andrew-codechimp/HA-Periodic-Min-Max/latest/total?style=for-the-badge\n[hacs-installs-shield]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Flauwbier.nl%2Fhacs%2Fperiodic_min_max\u0026style=for-the-badge\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-codechimp%2Fha-periodic-min-max","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrew-codechimp%2Fha-periodic-min-max","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-codechimp%2Fha-periodic-min-max/lists"}