Adds Home Assistant support for Xaibatsu

This commit is contained in:
2025-06-19 01:02:51 -07:00
parent c5f295555b
commit 7e10083671
8 changed files with 445 additions and 2 deletions

View File

@@ -70,3 +70,9 @@ class AnyDevice : Device
}
extension AnyDevice : Hashable {}
extension Device {
func eraseToAnyDevice() -> AnyDevice {
AnyDevice(self)
}
}

View File

@@ -0,0 +1,24 @@
//
// HomeAssistantDevice.swift
// XIONControlPanel
//
// Created by James Magahern on 6/18/25.
// Copyright © 2025 XION. All rights reserved.
//
import Foundation
class HomeAssistantDevice: Device
{
var name: String
var serial: String
var type: DeviceType
var state: DeviceState
init(name: String, serial: String, type: DeviceType, state: DeviceState) {
self.name = name
self.serial = serial
self.type = type
self.state = state
}
}