mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 01:15:10 -06:00
update README
This commit is contained in:
10
README.md
10
README.md
@@ -23,7 +23,15 @@ You can generate type-safe constants for all your Home Assistant entities using
|
||||
```yaml
|
||||
url: "http://192.168.1.123:8123"
|
||||
ha_auth_token: "your_auth_token" # Or set HA_AUTH_TOKEN env var
|
||||
home_zone_entity_id: "zone.home"
|
||||
home_zone_entity_id: "zone.home" # Optional: defaults to zone.home
|
||||
|
||||
# Optional: List of domains to include when generating constants
|
||||
# If provided, only these domains will be processed
|
||||
include_domains: ["light", "switch", "climate"]
|
||||
|
||||
# Optional: List of domains to exclude when generating constants
|
||||
# Only used if include_domains is empty
|
||||
exclude_domains: ["device_tracker", "person"]
|
||||
```
|
||||
|
||||
2. Add a `//go:generate` comment in your project:
|
||||
|
||||
Reference in New Issue
Block a user