{"id":13585801,"url":"https://github.com/Misiu/argon40","last_synced_at":"2025-04-07T10:31:49.096Z","repository":{"id":43784794,"uuid":"267311926","full_name":"Misiu/argon40","owner":"Misiu","description":"Home Assistant support for Argon ONE Pi 3 \u0026 4 cases and Argon Fan HAT","archived":false,"fork":false,"pushed_at":"2025-03-25T16:47:38.000Z","size":557,"stargazers_count":120,"open_issues_count":9,"forks_count":21,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-06T09:12:00.221Z","etag":null,"topics":["argon","argon-fan-hat","argon40"],"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/Misiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-05-27T12:21:45.000Z","updated_at":"2025-03-19T05:53:37.000Z","dependencies_parsed_at":"2024-08-01T16:41:52.140Z","dependency_job_id":null,"html_url":"https://github.com/Misiu/argon40","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"ludeeus/integration_blueprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misiu%2Fargon40","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misiu%2Fargon40/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misiu%2Fargon40/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misiu%2Fargon40/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Misiu","download_url":"https://codeload.github.com/Misiu/argon40/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636652,"owners_count":20970973,"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":["argon","argon-fan-hat","argon40"],"created_at":"2024-08-01T15:05:09.248Z","updated_at":"2025-04-07T10:31:49.090Z","avatar_url":"https://github.com/Misiu.png","language":"Python","funding_links":["https://www.buymeacoffee.com/Misiu"],"categories":["Python"],"sub_categories":[],"readme":"# Argon ONE Pi 3 \u0026 4 Cases and Fan HAT support for Home Assistant\r\n\r\n[![GitHub Release][releases-shield]][releases]\r\n[![GitHub Activity][commits-shield]][commits]\r\n[![License][license-shield]](LICENSE)\r\n\r\n[![GitHub CRON Workflow Status][cron-build-shield]][cron-build]\r\n[![GitHub PUSH Workflow Status][push-build-shield]][push-build]\r\n\r\n[![hacs][hacsbadge]][hacs]\r\n![Project Maintenance][maintenance-shield]\r\n[![BuyMeCoffee][buymecoffeebadge]][buymecoffee]\r\n\r\n\r\n_Component supports:_ [Argon ONE Raspberry Pi 4 Case][argon_one_pi4], [Argon ONE Raspberry Pi 3 Case][argon_one_pi3], [Argon Fan HAT][argon_fan_hat].\r\n\r\n![example][exampleimg]\r\n\r\n## Installation\r\n\r\n1. Enable I2C. This is the most important step. Disabled I2C prevents the integraion from running and shows an error in logs.\r\n   * [Official way](https://www.home-assistant.io/common-tasks/os#enable-i2c-via-home-assistant-operating-system-terminal)\r\n   * [Using Add-on HassOS I2C Configurator](https://community.home-assistant.io/t/add-on-hassos-i2c-configurator/264167) (the easiest way)\r\n3. Using the tool of choice open the directory (folder) for your HA configuration (where you find `configuration.yaml`).\r\n4. If you do not have a `custom_components` directory (folder) there, you need to create it.\r\n5. In the `custom_components` directory (folder) create a new folder called `argon40`.\r\n6. Download _all_ the files from the `custom_components/argon40/` directory (folder) in this repository.\r\n7. Place the files you downloaded in the new directory (folder) you created.\r\n8. Add `argon40:` to your `configuration.yaml`\r\n9. Restart Home Assistant\r\n\r\nUsing your HA configuration directory (folder) as a starting point you should now also have this:\r\n\r\n```text\r\ncustom_components/argon40/__init__.py\r\ncustom_components/argon40/const.py\r\ncustom_components/argon40/manifest.json\r\ncustom_components/argon40/services.yaml\r\n```\r\n\r\n## Configuration is done via configuration.yaml\r\n\r\n\u003c!----\u003e\r\n\r\n#### Config\r\n\r\n1. Add CPU Temperature sensor:\r\n```yaml\r\ncommand_line:\r\n  - sensor:\r\n      name: CPU Temp\r\n      unique_id: cpu_temp\r\n      command: \"cat /sys/class/thermal/thermal_zone0/temp\"\r\n      unit_of_measurement: \"°C\"\r\n      value_template: \"{{ value | multiply(0.001) | round(1) }}\"\r\n```\r\nOr use [System monitor](https://www.home-assistant.io/integrations/systemmonitor/#processor-temperature) integration to get the CPU temperature\r\n2. Add automation:\r\n```yaml\r\nautomation:\r\n  - alias: \"Set fan speed\"\r\n    trigger:\r\n      platform: numeric_state\r\n      entity_id: sensor.cpu_temp\r\n      above: 50.0\r\n      for:\r\n        minutes: 1\r\n    action:\r\n      - service: argon40.set_fan_speed\r\n        data:\r\n          speed: 40\r\n```\r\n\r\n#### Bonus - button double-tap detection\r\n\r\n```yaml\r\nautomation:\r\n  - alias: \"Argon40 button double-tap\"\r\n    trigger:\r\n      platform: event\r\n      event_type: argon40_event\r\n      event_data:\r\n        action: double-tap\r\n    action:\r\n      - service: persistent_notification.create\r\n        data:\r\n          title: \"Argon 40\"\r\n          message: \"Button was double-tapped\"\r\n```\r\n\r\n## Contributions are welcome!\r\n\r\nIf you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)\r\n\r\n***\r\n\r\n[argon_one_pi4]: https://www.argon40.com/argon-one-raspberry-pi-4-case.html\r\n[argon_one_pi3]: https://www.argon40.com/argon-one-raspberry-pi-3-case.html\r\n[argon_fan_hat]: https://www.argon40.com/argon-fan-hat-for-raspberry-pi-4-raspberry-pi-3b-and-raspberry-pi-3-b.html\r\n\r\n[buymecoffee]: https://www.buymeacoffee.com/Misiu\r\n[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=for-the-badge\r\n\r\n[commits]: https://github.com/Misiu/argon40/commits/master\r\n[commits-shield]: https://img.shields.io/github/commit-activity/y/Misiu/argon40.svg?style=for-the-badge\r\n\r\n[hacs]: https://github.com/custom-components/hacs\r\n[hacsbadge]: https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge\r\n\r\n[exampleimg]: example.png\r\n\r\n[license-shield]: https://img.shields.io/github/license/Misiu/argon40.svg?style=for-the-badge\r\n[maintenance-shield]: https://img.shields.io/badge/maintainer-%40Misiu-blue.svg?style=for-the-badge\r\n\r\n[releases-shield]: https://img.shields.io/github/release/Misiu/argon40.svg?style=for-the-badge\r\n[releases]: https://github.com/Misiu/argon40/releases\r\n\r\n[cron-build-shield]: https://img.shields.io/github/actions/workflow/status/Misiu/argon40/cron.yml?label=CRON\u0026style=for-the-badge\r\n[cron-build]: https://github.com/Misiu/argon40/actions/workflows/cron.yml\r\n\r\n[push-build-shield]: https://img.shields.io/github/actions/workflow/status/Misiu/argon40/pull_and_push.yml?label=PULL%20%26%20PUSH\u0026style=for-the-badge\r\n[push-build]: https://github.com/Misiu/argon40/actions/workflows/pull_and_push.yml\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMisiu%2Fargon40","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMisiu%2Fargon40","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMisiu%2Fargon40/lists"}