All Projects → mawalu → homeassistant-cli

mawalu / homeassistant-cli

Licence: other
Control your smart home from the terminal

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to homeassistant-cli

Home-AssistantConfig---OLD
AtomicPapa's Amazing Home Assistant Config
Stars: ✭ 15 (+25%)
Mutual labels:  home-automation, home-assistant
double-take
Unified UI and API for processing and training images for facial recognition.
Stars: ✭ 585 (+4775%)
Mutual labels:  home-automation, home-assistant
addon-home-panel
Home Panel - Home Assistant Community Add-ons
Stars: ✭ 164 (+1266.67%)
Mutual labels:  home-automation, home-assistant
ha-illuminance
Home Assistant Illuminance Sensor
Stars: ✭ 53 (+341.67%)
Mutual labels:  home-automation, home-assistant
google fit hass
A Home assistant custom component to get your fitness information using Google Fitness API.
Stars: ✭ 23 (+91.67%)
Mutual labels:  home-automation, home-assistant
ocpp
Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).
Stars: ✭ 82 (+583.33%)
Mutual labels:  home-automation, home-assistant
home-assistant-opentherm-thermostat
Home Assistant OpenTherm Thermostat
Stars: ✭ 26 (+116.67%)
Mutual labels:  home-automation, home-assistant
Home Assistant Cli
💻 Command-line tool for Home Assistant
Stars: ✭ 243 (+1925%)
Mutual labels:  home-automation, home-assistant
hifiberry
This is a custom component to allow control of HifiberryOS devices in Home Assistant using the audiocontrol2 REST API.
Stars: ✭ 26 (+116.67%)
Mutual labels:  home-automation, home-assistant
docker-iot-stack
💻 My personal Docker IoT Stack
Stars: ✭ 24 (+100%)
Mutual labels:  home-automation, home-assistant
hass-pandora-cas
Home Assistant custom component for Pandora Car Alarm System
Stars: ✭ 15 (+25%)
Mutual labels:  home-automation, home-assistant
HomeAssistant.AppStarter
Home Assistant 'Hass' is a home automation system running on Unix-systems. This package aims to enable .NET developers to create their own 'app-like' programs that integrate with Home Assistant through it's Websocket and Web API's.
Stars: ✭ 13 (+8.33%)
Mutual labels:  home-automation, home-assistant
node-homeassistant
Node.js wrapper for the home-assistant websocket api
Stars: ✭ 27 (+125%)
Mutual labels:  home-automation, home-assistant
HomeAssistant-Tapo-Control
Control for Tapo cameras as a Home Assistant component
Stars: ✭ 327 (+2625%)
Mutual labels:  home-automation, home-assistant
home-assistant-config
🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
Stars: ✭ 34 (+183.33%)
Mutual labels:  home-automation, home-assistant
hass-amplifi
A home assistant integration for Ubiquiti Amplifi
Stars: ✭ 17 (+41.67%)
Mutual labels:  home-automation, home-assistant
Node Red Contrib Home Assistant Websocket
Node-RED integration with Home Assistant Core
Stars: ✭ 222 (+1750%)
Mutual labels:  home-automation, home-assistant
Netdisco
🔎 Python library to scan local network for services and devices.
Stars: ✭ 240 (+1900%)
Mutual labels:  home-automation, home-assistant
home-assistant-config
My home-assistant configuration
Stars: ✭ 48 (+300%)
Mutual labels:  home-automation, home-assistant
Home-Assistant-Config
🏠 My huizebruin Home Assistant configuration, Be sure to 🌟 this repository for updates! huizebruin
Stars: ✭ 29 (+141.67%)
Mutual labels:  home-automation, home-assistant

homeassistant-cli

A simple cli tool for Home Assistant that uses node-homeassistant.

Installation

$ npm install -g homeassistant-cli

If there is an permission error you have to reconfigure npm or use sudo

Usage

Call a service

$ hac call light turn_on

Add additional service data

$ hac call light turn_on --service-data '{"entity_id": "light.komode"}'

Query the state

$ hac state sun.sun

Subscribe to state changes

$ hac state -s sun.sun

Additional parameters

Custom hostname, port and password

$ hac --ip 10.1.0.166 --port 80 --api-password "hunter4" state sun.sun

To find shorthands and some extra parameters use

$ hac --help

Scripting example

You can use this to access Home Assistant from your scripts

#!/bin/bash

hac state -s light.komode | while read -r change; do
  state=$(echo "$change" | jq ".new_state.state")

  echo "Light is now $state"
done
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].