Skip to content

Add WebSocket support for real-time updates #599

Description

@tomquist

python-homewizard-energy currently appears to rely on polling.
Please add WebSocket support so consumers can receive device updates in real time.

Requested

• WebSocket client support for HomeWizard Energy devices
• Async event stream / callback interface for incoming updates
• Automatic reconnect with backoff
• Polling fallback where WebSocket is unavailable
• Basic docs with endpoint/auth/message format

Optional API shape

async with HomeWizardWebSocket(host, token=...) as ws:
async for event in ws.events():
...

This would reduce update latency compared to polling and improve responsiveness for automation/control use cases.

If this is added in the library, the Home Assistant HomeWizard integration should ideally also be updated to consume the WebSocket API instead of polling, so HA users can benefit from real-time updates end-to-end.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions