hactl 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -1
  3. package/dist/cli.js +948 -397
  4. package/package.json +2 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 houfio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -26,7 +26,7 @@ npm install -g hactl@latest
26
26
 
27
27
  ## Usage
28
28
 
29
- `hactl` reads entities, devices, areas and services from Home Assistant, calls services, with JSON output, and reads logs as plain text. It works on contexts, one per instance, with tokens kept in the OS keychain.
29
+ `hactl` reads entities, devices, areas, floors, labels and services from Home Assistant, queries and calls services, with JSON output, renders Jinja templates, and reads logs as plain text. It works on contexts, one per instance, with tokens kept in the OS keychain.
30
30
 
31
31
  ```bash
32
32
  hactl ctx set home --url https://ha.example.ts.net --install haos
@@ -34,6 +34,8 @@ hactl ctx token-set home
34
34
  hactl ctx use home
35
35
 
36
36
  hactl get entities --domain light
37
+ hactl query todo.get_items --entity todo.shopping
38
+ hactl template "{{ states('light.kitchen') }}"
37
39
  hactl call light.turn_on --entity light.kitchen
38
40
  hactl logs --follow
39
41
  ```