update README

This commit is contained in:
Sam Lewis
2025-06-02 20:02:27 -04:00
parent 75f0b6b848
commit 7cf78177f3

View File

@@ -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: