Continue Discussion 32 replies
February 2019

jncanches

Really exciting stuff like always! Thank you!
Will try it tomorrow remotely (will post feedback here)
Wish the auto-completion is as great as your description !

1 reply
February 2019

Lance

How do I install this to my hass.io install?

When I ssh into my hass.io it doesn’t recognize the pip command!

1 reply
February 2019 ▶ jncanches

maxandersen

Glad you like it - If the auto-completion is not what you think it could be let us know; easy to add/improve it so lets know what could help you best :slight_smile:

February 2019 ▶ Lance

maxandersen

Hi Lance,

You don’t have to install it on your hass.io instance, you can install it on your laptop/desktop and use it remotely.

If you do want to have it on your hass.io install then @frenck’s ssh-addon latest release have it pre-installed and pre-configured.

1 reply
February 2019 ▶ maxandersen

Lance

Thanks, I have now installed that ssh-addon and will have a play later!

February 2019

marcwagner

Oh man, this is the feature I did not know I wanted. It’s perfect. Can’t wait to get started.

February 2019

DrJeff

Because it Awesome!
@maxandersen Thanks

February 2019

Mike_Boiko

Thanks for doing this, I love iT1

March 2019

Juliean_Galak

Is Hass-cli different from hassio-cli, which is invoked with hassio rather than hass-cli?

2 replies
March 2019 ▶ Juliean_Galak

maxandersen

Yes. Hass-cli is for homeassistant not hassio. That said eventually I could see us expose lot of what hassio does - at least for those things available via homeassistsant APIs.

April 2019

riemers

So i’am using hass-cli but i can only ‘list/get’ items and i dont see the options i see on your demo on https://asciinema.org/a/216235?autoplay=1&speed=1 i don’t see the option for example to do ‘hass-cli entity delete’

Am i missing something?

1 reply
April 2019

rccoleman

Which version are you using? When I installed this a few weeks ago, the version available on brew on Macos was one version behind the tip (0.5 vs. 0.6, I think), and it was missing a bunch of options.

1 reply
August 2019 ▶ Juliean_Galak

kitus

Hi @Juliean_Galak, have you discovered any similar way of interacting with hassio?

1 reply
August 2019 ▶ riemers

maxandersen

its renamed to hass-cli state delete and yes, I should get the ascinema recording updated :slight_smile:

August 2019 ▶ rccoleman

maxandersen

https://formulae.brew.sh/formula/homeassistant-cli is now at 0.7

haven’t yet found a way to automate updates of brew at release time - if anyone knows how I would love to get a contribution for making that happen!

1 reply
August 2019 ▶ kitus

maxandersen

I have a WIP on adding hassio-cli commands to hass-cli at https://github.com/home-assistant/home-assistant-cli/pull/276

but you can use https://github.com/home-assistant/hassio-cli to have hassio-cli and use it remotely.

November 2019

haakonstorm

haven’t yet found a way to automate updates of brew at release time - if anyone knows how I would love to get a contribution for making that happen!

Perhaps the kubernetes guys have a solution:

Either that or via the brew plugin for fastlane somehow?

1 reply
November 2019 ▶ haakonstorm

maxandersen

The challenge is that for python based brew formulas you need to somehow manually update the dependency info; kubernetes is just a single binary thus its fairly simply to a brew update.

I’m not sure what you refer to with respect to brew plugin for fastlane ?

If you find a way to automatically update the homebrew formula to please open a PR as these days I now have the release of hass-cli down to just be me doing a git tag which triggers build and release to pyp and the docker containers. I would like brew would be automated in the same flow.

1 reply
November 2019 ▶ maxandersen

haakonstorm

(I was thinking about Fastlane the build automation suite, and that they have a plugin for brew (/and cask).)

but maybe this:

Updating a Cask

Notice an application that’s out-of-date in Homebrew Cask? In most cases, it’s very simple to update it. We have a script that will ask for the new version number, and take care of updating the Cask file and submitting a pull request to us:

install and setup script - only needed once brew install vitorgalvao/tiny-scripts/cask-repair cask-repair --help # use to update <outdated_cask> cask-repair <outdated_cask>

If there is a more complicated change, or there is a case where cask-repair fails (for example, where a Cask uses a url do block or the language stanza), you can also follow the steps in Adding a Cask to do the same thing manually. Remember to update the version and shasum values.

January 2020

lmamakos

Just wanted to say thanks for making hass-cli. It has solved a problem for me in renaming a pile of Z-Wave entity_ids that get automatically created with ugly names. See What is the preferred way to rename z-wave entities? for my BASH 1-liner to save me endless clicking and typing, one entity at a time…

April 2020

mkanet

Would someone please be kind enough to help me get started with Home Assistant CLI on Windows 10? I already have Python installed. It doesn’t look like the instructions were meant for Windows 10.
All I want to do is turn OFF (or ON) my appliance using a python script. …So I can just execute Toaster-ON.py to turn on my toaster, for example. Looking forward to some assistance.

April 2020

janbenes

Hello, I am dead with trials. I want to run a service by hass-cli, but can not find proper format of the command. Lets say I have a tuya scene defined “both_yellow” that sets two lamps to yellow color. in Home-Assistant, I see the entity as scene.both_yellow. How do I run that scene from hass-cli please? Thank you very much, Jan

1 reply
May 2020 ▶ janbenes

janbenes

Solved it. The command line is

hass-cli service call --arguments entity_id=scene.both_yellow scene.turn_on

1 reply
May 2020 ▶ janbenes

mgguinne

Just wanted to thank you @janbenes. Could not figure out how to do this and now I got my office light scenes to work via CLI! This was only place I found the answer :slight_smile:

January 2022

mterry63 Regular

For those people using this tool, it appears return UTC time for history queries, is that right?

October 2022

Arosuto93081

I got one question that should be simple… How do I change my keyboard settings? I got a keyboard with a Belgian layout.

June 2023

oneseventhree

Can anyone see what I am doing wrong here when trying to add my server:

Thanks!

1 reply
June 2023 ▶ oneseventhree

nickrout Solution Institution

You haven’t given a command. Try

hass-cli info --server (etc)
1 reply
June 2023 ▶ nickrout

oneseventhree

thanks for the reply! I tried that and still get the same error:

2 replies
June 2023 ▶ oneseventhree

nickrout Solution Institution

And what result do you get when you follow that recommendation?

April 2024 ▶ oneseventhree

DvdNwk

try putting --server before the (inner) command you want to run:

hass-cli --server http://blahblah info

March 12

hroman

Is this project abandoned? It’s not working, there are multiple issues with connection and discovery, and last release is 2-3 years ago now.
I am just looking for a way to run ha script commands from command-line remotely.