feat(smarthome): add smart home features and Home Assistant integration (WebSocket protocol, discovery, factories, interfaces)

This commit is contained in:
2026-01-09 16:20:54 +00:00
parent 7bcec69658
commit 38a6e5c250
23 changed files with 4786 additions and 5 deletions

View File

@@ -13,16 +13,29 @@ import type { IRetryOptions } from './index.js';
* All supported feature types
*/
export type TFeatureType =
// Document handling
| 'scan' // Can scan documents (eSCL, SANE)
| 'print' // Can print documents (IPP, JetDirect)
| 'fax' // Can send/receive fax
| 'copy' // Can copy (scan + print combined)
// Media playback
| 'playback' // Can play media (audio/video)
| 'volume' // Has volume control
// Infrastructure
| 'power' // Has power status (UPS, smart plug)
| 'snmp' // SNMP queryable
// DLNA
| 'dlna-render' // DLNA renderer
| 'dlna-serve' // DLNA server (content provider)
// Smart home (protocol-agnostic: home-assistant, hue, mqtt, etc.)
| 'light' // Brightness, color, effects
| 'climate' // Temperature, HVAC modes
| 'sensor' // Read-only state values
| 'camera' // Snapshots, streams
| 'cover' // Blinds, garage doors
| 'switch' // Binary on/off
| 'lock' // Lock/unlock
| 'fan' // Speed, oscillation
;
/**