All Projects → dale3h → Hassctl

dale3h / Hassctl

Licence: mit
Simple command line utility to help debug Home Assistant configuration

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Hassctl

Pihole Panel
Python/GTK3 based Pi-hole (network-level adblocker) dashboard for stats and more
Stars: ✭ 125 (+62.34%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Spocon
SpoCon - A Spotify Connect Client for Debian , Ubuntu and Raspberry Pi based on librespot-java
Stars: ✭ 51 (-33.77%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Atomic Toolkit
AtoMiC Toolkit simplifies HTPC / Home Server setup and management on Ubuntu and Debian variants including Raspbian. It currently supports: Couchpotato, Deluged, Emby, FFmpeg, Headphones, Htpcmanager, Jackett, Kodi, Lazylibrarian, Madsonic, Mono, Mylar, Nzbget, Nzbhydra, NzbToMedia, Ombi, Plex, Plexpy, Pyload, qBittorrent, Radarr, Sabnzbd+, Sickgear, Sickrage, Sonarr, Subsonic, Transmission, Unrar, Watcher, and Webmin.
Stars: ✭ 747 (+870.13%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (+93.51%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Piku
The tiniest PaaS you've ever seen. Piku allows you to do git push deployments to your own servers.
Stars: ✭ 902 (+1071.43%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Mobilenet Ssd Realsense
[High Performance / MAX 30 FPS] RaspberryPi3(RaspberryPi/Raspbian Stretch) or Ubuntu + Multi Neural Compute Stick(NCS/NCS2) + RealSense D435(or USB Camera or PiCamera) + MobileNet-SSD(MobileNetSSD) + Background Multi-transparent(Simple multi-class segmentation) + FaceDetection + MultiGraph + MultiProcessing + MultiClustering
Stars: ✭ 322 (+318.18%)
Mutual labels:  raspberry-pi, ubuntu, raspbian
Ubuntu64 Rpi
适用于树莓派3b/3b+的64位系统.
Stars: ✭ 652 (+746.75%)
Mutual labels:  raspberry-pi, ubuntu
Raspberry Pi Turnkey
How to make a Raspberry Pi image that can be deployed anywhere and assigned to a WiFi network without SSH 👌
Stars: ✭ 682 (+785.71%)
Mutual labels:  raspberry-pi, raspbian
Hardening
Hardening Ubuntu. Systemd edition.
Stars: ✭ 705 (+815.58%)
Mutual labels:  ubuntu, systemd
Hassio Zigbee2mqtt
Hass.io add-on for zigbee2mqtt
Stars: ✭ 547 (+610.39%)
Mutual labels:  home-assistant, raspberry-pi
Solarthing
Monitors an Outback MATE and a Renogy Rover - MPPT Charge Controller. Integrates with Grafana, PVOutput and more!
Stars: ✭ 33 (-57.14%)
Mutual labels:  home-assistant, raspberry-pi
Debootstick
Generate a bootable live image from any Debian/Ubuntu filesystem tree.
Stars: ✭ 48 (-37.66%)
Mutual labels:  raspberry-pi, ubuntu
Gopigo3
The GoPiGo3 is a Raspberry Pi Robot!
Stars: ✭ 74 (-3.9%)
Mutual labels:  raspberry-pi, raspbian
Rpi Audio Receiver
Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay, UPnP and Spotify Connect
Stars: ✭ 650 (+744.16%)
Mutual labels:  raspberry-pi, raspbian
Enclosure Picroft
Mycroft interface for Raspberry Pi environment
Stars: ✭ 649 (+742.86%)
Mutual labels:  raspberry-pi, raspbian
Q3lite
Q3lite, an OpenGL ES port of Quake III Arena for embedded Linux systems.
Stars: ✭ 64 (-16.88%)
Mutual labels:  raspberry-pi, raspbian
Rpi Configs
My personal config files for Raspbian on Raspberry Pi
Stars: ✭ 53 (-31.17%)
Mutual labels:  raspberry-pi, raspbian
Homeassistant Config
My personal Home Assistant config
Stars: ✭ 66 (-14.29%)
Mutual labels:  home-assistant, raspberry-pi
Client
An Opensource Alternative to the Elgato Stream Deck for the Raspberry Pi
Stars: ✭ 67 (-12.99%)
Mutual labels:  raspberry-pi, raspbian
Buildswiftonarm
All you need to build Swift on a RaspberryPi or other ARM boards, updated to Swift 5.1.5
Stars: ✭ 448 (+481.82%)
Mutual labels:  ubuntu, raspbian

hassctl Flattr this

A command line utility to simplify the management of Home Assistant

Compatibility

This utility has been tested on the following platforms:

  • Raspberry Pi
    • Manual install (with systemd service)
    • AIO/One-Step Installer
    • HASSbian Image
  • Ubuntu Server 16.04.1
    • Manual install (with systemd service)

Installation

sudo curl -o /usr/local/bin/hassctl https://raw.githubusercontent.com/dale3h/hassctl/master/hassctl && sudo chmod +x /usr/local/bin/hassctl

Updating Home Assistant

The safest way to update Home Assistant in a production environment is to run:

hassctl update-hass && hassctl config && hassctl restart

This set of commands will update Home Assistant, run a configuration check, and then restart.

If the update fails, the configuration check will not run.

If the configuration check fails, Home Assistant will not be restarted.

If you would like to install a specific version of Home Assistant, run:

hassctl update-hass 0.43.1 (replace 0.43.1 with the version you wish to install)

Updating hassctl

To update hassctl to the latest stable version, run hassctl update-hassctl or hassctl update-hassctl master

To update hassctl to a custom branch on this repo, run hassctl update-hassctl branch-name

Usage

You can update Home Assistant using:

$ hassctl update-hass - Update Home Assistant to the latest version on PyPi

$ hassctl update-hass 0.47.0 - Update Home Assistant to version 0.47.0

You can control Home Assistant using:

$ hassctl start - Start the Home Assistant service

$ hassctl stop - Stop the Home Assistant service

$ hassctl restart - Restart the Home Assistance service

$ hassctl kill - Send a SIGKILL (-9) signal to the Home Assistant service

$ hassctl log - Follow the Home Assistant logs (errors are highlighted)

$ hassctl error - Follow the Home Assistant error logs

$ hassctl debug - Follow the Home Assistant debug logs

$ hassctl zwave - Follow the Open Z-Wave logs

$ hassctl config - Run the configuration check script

$ hassctl update-hassctl [branch] - Update hassctl to the latest version

Configuration Examples

The configuration file is located at /etc/hassctl.conf.

HASSbian

HASSCTL_BRANCH=master

VIRTUAL_ENV=/srv/homeassistant
PIP_EXEC=$VIRTUAL_ENV/bin/pip3
HASS_EXEC=$VIRTUAL_ENV/bin/hass

HASS_CONFIG=/home/homeassistant/.homeassistant
HASS_USER=homeassistant
[email protected]

OZW_LOG=$HASS_CONFIG/OZW_Log.txt

Current AIO Installer

HASSCTL_BRANCH=master

VIRTUAL_ENV=/srv/homeassistant/homeassistant_venv
PIP_EXEC=$VIRTUAL_ENV/bin/pip3
HASS_EXEC=$VIRTUAL_ENV/bin/hass

HASS_CONFIG=/home/homeassistant/.homeassistant
HASS_USER=homeassistant
HASS_SERVICE=home-assistant.service

OZW_LOG=$HASS_CONFIG/OZW_Log.txt

Pre-December 2016 AIO Installer

HASSCTL_BRANCH=master

VIRTUAL_ENV=/srv/hass/hass_venv
PIP_EXEC=$VIRTUAL_ENV/bin/pip3
HASS_EXEC=$VIRTUAL_ENV/bin/hass

HASS_CONFIG=/home/hass/.homeassistant
HASS_USER=hass
HASS_SERVICE=home-assistant.service

OZW_LOG=$HASS_CONFIG/OZW_Log.txt
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].