Add device control and support for 'out_bin_switch' service

This commit is contained in:
Adrian Jagielak
2025-07-23 15:34:22 +02:00
parent b92b919008
commit d608afb455
49 changed files with 738 additions and 502 deletions

View File

@@ -1,7 +1,14 @@
import { MqttClient } from "mqtt/*";
import { CommandHandlers } from "./publish_device";
export let ha: MqttClient | undefined = undefined;
export function setHa(client: MqttClient) {
ha = client;
}
export let haCommandHandlers: CommandHandlers | undefined = undefined;
export function setHaCommandHandlers(handlers: CommandHandlers) {
haCommandHandlers = handlers;
}