https://github.com/raqbit/ha-switchscene
Simple CLI utility for triggering a scene in Home Assistant
https://github.com/raqbit/ha-switchscene
Last synced: 12 months ago
JSON representation
Simple CLI utility for triggering a scene in Home Assistant
- Host: GitHub
- URL: https://github.com/raqbit/ha-switchscene
- Owner: raqbit
- License: mit
- Created: 2021-04-05T11:52:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T11:54:34.000Z (over 5 years ago)
- Last Synced: 2025-02-28T15:12:45.455Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ha-switchscene
Small utility which I use to activate Home Assistant scenes via keyboard shortcuts.
The utility will also send notifications when it changs the scene or when errors occur, although this currently only
works on Linux-based systems with the `notify-send` application present. Install `libnotify-bin` on debian or Ubuntu.
## Usage
```
ha-switchscene -url "http://homeassistant.local:8123" -scene "scene.some_scene" -name "Some Scene"
```
## Storing long-lived token
`ha-switchscene` retrieves your long-lived Home Assistant token from your keyring. To install your Home Assistant token
into your keyring, please run `ha-switchscene` in `storeToken`
mode:
```
ha-switchscene -storeToken -url "http://homeassistant.local:8123"
```
Paste in your token: Note that your input will not be shown back to you.
Every time you now use `ha-swichscene` with the same Home Assistant URL, your stored token will be used.