mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-02-11 07:15:38 +00:00
Add device control and support for 'out_bin_switch' service
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user