mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-09-13 07:37:09 +00:00
15 lines
411 B
TypeScript
15 lines
411 B
TypeScript
import { FimpResponse, sendFimpMsg } from './fimp';
|
|
|
|
export async function pollVinculum(
|
|
component: 'device' | 'house' | 'state',
|
|
): Promise<FimpResponse> {
|
|
return await sendFimpMsg({
|
|
address: '/rt:app/rn:vinculum/ad:1',
|
|
service: 'vinculum',
|
|
cmd: 'cmd.pd7.request',
|
|
val: { cmd: 'get', component: null, param: { components: [component] } },
|
|
val_t: 'object',
|
|
timeoutMs: 30000,
|
|
});
|
|
}
|