8 lines
418 B
Go
8 lines
418 B
Go
package ha
|
|
|
|
// TODO: implement HA WebSocket client.
|
|
// Auth flow: receive auth_required → send {"type":"auth","access_token":"..."} → receive auth_ok.
|
|
// Subscribe: send {"id":1,"type":"subscribe_events","event_type":"state_changed"}
|
|
// Events: stream {"type":"event","event":{"event_type":"state_changed","data":{...}}}
|
|
// This adapter will publish to the internal fanout broker once EventService is implemented.
|