You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add Home Assistant Event entity for command errors
Closes#272. When a command to the vehicle fails, a JSON event is now
published to the command/error topic so Home Assistant users can build
automations around command failures.
Changes:
- Add _publish_event() to HA discovery base for MQTT Event entities
- Register a "Command error" diagnostic event entity in discovery
- Publish error events from all failure paths in VehicleCommandHandler
- Wrap error event publishing in try-except to prevent masking original errors
- Cover the "no handler found" path with error events too
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments