{"id":23113736,"url":"https://github.com/maziggy/bettertrends","last_synced_at":"2026-04-17T06:32:06.669Z","repository":{"id":264319426,"uuid":"893017123","full_name":"maziggy/BetterTrends","owner":"maziggy","description":"A custom Home Assistant integration, that calculates trending for entities and displays result in a nice way.","archived":false,"fork":false,"pushed_at":"2025-01-13T12:40:59.000Z","size":512,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T12:26:48.734Z","etag":null,"topics":["hacs","hacs-custom","hacs-integration","hacs-plugin","hass","hassio-addons","hassio-integration","home-assistant","homeassistant","homeassistant-custom-component","homeassistant-integration","trend-analysis"],"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/maziggy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-11-23T10:10:11.000Z","updated_at":"2025-01-13T12:41:03.000Z","dependencies_parsed_at":"2024-12-15T07:24:17.539Z","dependency_job_id":"abd682bb-6154-4c10-95bd-6d0807770154","html_url":"https://github.com/maziggy/BetterTrends","commit_stats":null,"previous_names":["maziggy/bettertrends"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maziggy%2FBetterTrends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maziggy%2FBetterTrends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maziggy%2FBetterTrends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maziggy%2FBetterTrends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maziggy","download_url":"https://codeload.github.com/maziggy/BetterTrends/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247099964,"owners_count":20883498,"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","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-custom","hacs-integration","hacs-plugin","hass","hassio-addons","hassio-integration","home-assistant","homeassistant","homeassistant-custom-component","homeassistant-integration","trend-analysis"],"created_at":"2024-12-17T03:13:32.326Z","updated_at":"2025-10-17T04:52:15.527Z","avatar_url":"https://github.com/maziggy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://raw.githubusercontent.com/home-assistant/brands/refs/heads/master/custom_integrations/better_trends/logo.png)\n\n# BetterTrends\n\nA custom Home Assistant integration, that calculates trend values for entities and displays result in a nice way.\n\n## Screenshot \n\n![image](https://raw.githubusercontent.com/maziggy/BetterTrends/refs/heads/main/screenshots/BetterTrends.png)\n\n## How it works\n\n* Add your existing entities to calculate trend for\n  \n![image](https://raw.githubusercontent.com/maziggy/BetterTrends/refs/heads/main/screenshots/BetterTrendsSetup.png)\n\n* Entities data is fetched every (A) seconds\n* If (B) entity data sets are fetched, trend is calculated and sensor.bettertrends_sensor_\u003cyour_entity\u003e is updated.\n\n![image](https://raw.githubusercontent.com/maziggy/BetterTrends/refs/heads/main/screenshots/BetterTrendsHelp.png)\n\n* A: data fetch interval\n* B: datasets fetched before calculating new trend value\n* C: current datasets collected\n* D: Total datasets required to calculate trend value (equals B)\n\nYou can click on A (interval), or B (steps) to change number.\n\n## Installation\n\n### Via HACS\n\n1. Ensure you have [HACS](https://hacs.xyz/) installed.\n2. In Home Assistant, go to **HACS** \u003e **Frontend**.\n3. Click the **\"+\"** button to add a new repository.\n4. Enter the repository URL: `https://github.com/maziggy/BetterTrends.git`.\n5. Select **Integration** as the category and **Save**.\n\nor simply\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=maziggy\u0026repository=BetterTrends\u0026category=integration)\n\n* Once installed, you'll get a persitant notification about how to add the two included dashboard cards (trend-card and trend-card-lite) to your resources.\n\n![image](https://raw.githubusercontent.com/maziggy/BetterTrends/refs/heads/main/screenshots/BetterTrendsAddResource.png)\n\n## Cards and options\n\n### trend-card\n```yaml\ntype: custom:trend-card\ninterval: number.bettertrends_interval\nsteps: number.bettertrends_steps\ncurrent_step: number.bettertrends_current_step\nmetric1_delta: sensor.bettertrends_\u003cyour_sensor_1\u003e\nmetric1_name: \u003cname\u003e\nmetric2_delta: sensor.bettertrends_\u003cyour_sensor_2\u003e\nmetric2_name: \u003cname\u003e\nmetric3_delta: sensor.bettertrends_\u003cyour_sensor_3\u003e\nmetric3_name: \u003cname\u003e\ntheme:\n  bgColor: \"#2c2c2e\"\n  textColor: \"#ffffff\"\n  iconColor: \"#ff9e32\"\n  iconBgColor: \"#323335\"\n  metricBgColor: \"#323335\"\n  bubble1Color: \"#1b7de5\"\n  bubble1TextColor: \"#ffffff\"\n  value1TextColor: \"#ffffff\"\n  bubble2Color: \"#e7970d\"\n  bubble2TextColor: \"#ffffff\"\n  value2TextColor: \"#ffffff\"\n  bubble3Color: \"#ab07ae\"\n  bubble3TextColor: \"#ffffff\"\n  value3TextColor: \"#ffffff\"\n  trendDownColor: \"#498bff\"\n  trendEqualColor: \"#4ff24b\"\n  trendUpColor: \"#ff4c4c\"\n```\n\n### trend-card-lite\n```yaml\ntype: custom:trend-card-lite\nmetric1_delta: sensor.bettertrends_\u003cyour_sensor_1\u003e\nmetric1_delta_name: \u003cname\u003e\nmetric2_delta: sensor.bettertrends_\u003cyour_sensor_2\u003e\nmetric2_delta_name: \u003cname\u003e\nmetric3_delta: sensor.bettertrends_\u003cyour_sensor_3\u003e\nmetric3_delta_name: \u003cname\u003e\ntheme:\n  bgColor: \"#2c2c2e\"\n  metricBgColor: \"#212122\"\n  bubble1Color: \"#2b8dd9\"\n  bubble1TextColor: \"#ffffff\"\n  value1TextColor: \"#ffffff\"\n  bubble2Color: \"#e7970d\"\n  bubble2TextColor: \"#ffffff\"\n  value2TextColor: \"#ffffff\"\n  bubble3Color: \"#ab07ae\"\n  bubble3TextColor: \"#ffffff\"\n  value3TextColor: \"#ffffff\"\n  trendDownColor: \"#498bff\"\n  trendEqualColor: \"#4ff24b\"\n  trendUpColor: \"#ff4c4c\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaziggy%2Fbettertrends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaziggy%2Fbettertrends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaziggy%2Fbettertrends/lists"}