mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-02-11 07:15:38 +00:00
Add support for pairing new devices
This commit is contained in:
14
futurehome/src/fimp/vinculum.ts
Normal file
14
futurehome/src/fimp/vinculum.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user