48 lines
926 B
Markdown
48 lines
926 B
Markdown
# Home Assistant Integration Tests
|
|
|
|
Tests EU-Utility integration with Home Assistant via multiple protocols.
|
|
|
|
## Test Coverage
|
|
|
|
### 1. REST API Tests
|
|
- Webhook triggers
|
|
- State updates
|
|
- Service calls
|
|
- Authentication
|
|
|
|
### 2. MQTT Tests
|
|
- Topic publishing
|
|
- QoS levels
|
|
- Retained messages
|
|
- Connection handling
|
|
|
|
### 3. WebSocket Tests
|
|
- Real-time events
|
|
- State subscriptions
|
|
- Service calls
|
|
- Connection management
|
|
|
|
## Configuration
|
|
|
|
### REST API
|
|
- Home Assistant URL (e.g., `http://homeassistant.local:8123`)
|
|
- Long-Lived Access Token
|
|
|
|
### MQTT
|
|
- Broker address
|
|
- Port (default: 1883)
|
|
- Authentication (if required)
|
|
|
|
## Compatibility Matrix
|
|
|
|
| Feature | Windows | Linux | macOS |
|
|
|---------|---------|-------|-------|
|
|
| REST API | ✅ | ✅ | ✅ |
|
|
| MQTT | ✅ | ✅ | ✅ |
|
|
| WebSocket | ✅ | ✅ | ✅ |
|
|
|
|
## Dependencies
|
|
|
|
- `requests` - REST API client
|
|
- `paho-mqtt` - MQTT client
|
|
- `websocket-client` - WebSocket client |