{"id":13588010,"url":"https://github.com/dale3h/hassctl","last_synced_at":"2025-04-10T17:53:03.742Z","repository":{"id":84575616,"uuid":"76262846","full_name":"dale3h/hassctl","owner":"dale3h","description":"Simple command line utility to help debug Home Assistant configuration","archived":false,"fork":false,"pushed_at":"2018-03-28T22:13:52.000Z","size":25,"stargazers_count":80,"open_issues_count":8,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-24T15:42:01.675Z","etag":null,"topics":["home-assistant","linux","raspberry-pi","raspbian","systemd","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/dale3h.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}},"created_at":"2016-12-12T14:16:42.000Z","updated_at":"2024-10-13T06:49:03.000Z","dependencies_parsed_at":"2023-03-12T23:41:30.822Z","dependency_job_id":null,"html_url":"https://github.com/dale3h/hassctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dale3h%2Fhassctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dale3h%2Fhassctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dale3h%2Fhassctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dale3h%2Fhassctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dale3h","download_url":"https://codeload.github.com/dale3h/hassctl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262434,"owners_count":21074308,"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":["home-assistant","linux","raspberry-pi","raspbian","systemd","ubuntu"],"created_at":"2024-08-01T15:06:27.916Z","updated_at":"2025-04-10T17:53:03.725Z","avatar_url":"https://github.com/dale3h.png","language":"Shell","funding_links":[],"categories":["Uncategorized","Shell"],"sub_categories":["Twitter"],"readme":"# hassctl \u003ca href=\"https://flattr.com/submit/auto?fid=o7dr10\u0026url=https%3A%2F%2Fgithub.com%2Fdale3h%2Fhassctl\" target=\"_blank\"\u003e\u003cimg src=\"https://button.flattr.com/flattr-badge-large.png\" alt=\"Flattr this\" title=\"Flattr this\" border=\"0\"\u003e\u003c/a\u003e\n\nA command line utility to simplify the management of Home Assistant\n\n## Compatibility\n\nThis utility has been tested on the following platforms:\n\n* Raspberry Pi\n  * Manual install (with `systemd` service)\n  * AIO/One-Step Installer\n  * HASSbian Image\n* Ubuntu Server 16.04.1\n  * Manual install (with `systemd` service)\n\n## Installation\n\n`sudo curl -o /usr/local/bin/hassctl https://raw.githubusercontent.com/dale3h/hassctl/master/hassctl \u0026\u0026 sudo chmod +x /usr/local/bin/hassctl`\n\n## Updating Home Assistant\n\nThe safest way to update Home Assistant in a production environment is to run:\n\n`hassctl update-hass \u0026\u0026 hassctl config \u0026\u0026 hassctl restart`\n\nThis set of commands will update Home Assistant, run a configuration check, and then restart.\n\nIf the update fails, the configuration check will not run.\n\nIf the configuration check fails, Home Assistant will not be restarted.\n\nIf you would like to install a specific version of Home Assistant, run:\n\n`hassctl update-hass 0.43.1` (replace `0.43.1` with the version you wish to install)\n\n## Updating `hassctl`\n\nTo update `hassctl` to the latest stable version, run `hassctl update-hassctl` or `hassctl update-hassctl master`\n\nTo update `hassctl` to a custom branch on this repo, run `hassctl update-hassctl branch-name`\n\n## Usage\n\n### You can update Home Assistant using:\n\n**`$ hassctl update-hass`** - Update Home Assistant to the latest version on PyPi\n\n**`$ hassctl update-hass 0.47.0`** - Update Home Assistant to version 0.47.0\n\n### You can control Home Assistant using:\n\n**`$ hassctl start`** - Start the Home Assistant service\n\n**`$ hassctl stop`** - Stop the Home Assistant service\n\n**`$ hassctl restart`** - Restart the Home Assistance service\n\n**`$ hassctl kill`** - Send a SIGKILL (-9) signal to the Home Assistant service\n\n**`$ hassctl log`** - Follow the Home Assistant logs (errors are highlighted)\n\n**`$ hassctl error`** - Follow the Home Assistant error logs\n\n**`$ hassctl debug`** - Follow the Home Assistant debug logs\n\n**`$ hassctl zwave`** - Follow the Open Z-Wave logs\n\n**`$ hassctl config`** - Run the configuration check script\n\n**`$ hassctl update-hassctl [branch]`** - Update `hassctl` to the latest version\n\n## Configuration Examples\n\nThe configuration file is located at `/etc/hassctl.conf`.\n\n### HASSbian\n\n```\nHASSCTL_BRANCH=master\n\nVIRTUAL_ENV=/srv/homeassistant\nPIP_EXEC=$VIRTUAL_ENV/bin/pip3\nHASS_EXEC=$VIRTUAL_ENV/bin/hass\n\nHASS_CONFIG=/home/homeassistant/.homeassistant\nHASS_USER=homeassistant\nHASS_SERVICE=home-assistant@homeassistant.service\n\nOZW_LOG=$HASS_CONFIG/OZW_Log.txt\n```\n\n### Current AIO Installer\n\n```\nHASSCTL_BRANCH=master\n\nVIRTUAL_ENV=/srv/homeassistant/homeassistant_venv\nPIP_EXEC=$VIRTUAL_ENV/bin/pip3\nHASS_EXEC=$VIRTUAL_ENV/bin/hass\n\nHASS_CONFIG=/home/homeassistant/.homeassistant\nHASS_USER=homeassistant\nHASS_SERVICE=home-assistant.service\n\nOZW_LOG=$HASS_CONFIG/OZW_Log.txt\n```\n\n### Pre-December 2016 AIO Installer\n\n```\nHASSCTL_BRANCH=master\n\nVIRTUAL_ENV=/srv/hass/hass_venv\nPIP_EXEC=$VIRTUAL_ENV/bin/pip3\nHASS_EXEC=$VIRTUAL_ENV/bin/hass\n\nHASS_CONFIG=/home/hass/.homeassistant\nHASS_USER=hass\nHASS_SERVICE=home-assistant.service\n\nOZW_LOG=$HASS_CONFIG/OZW_Log.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdale3h%2Fhassctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdale3h%2Fhassctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdale3h%2Fhassctl/lists"}