Add support for 'indicator_ctrl' service

This commit is contained in:
Adrian Jagielak
2025-07-24 22:50:34 +02:00
parent e8274850d1
commit dcab7a7112
6 changed files with 75 additions and 16 deletions

View File

@@ -43,6 +43,7 @@ export async function sendFimpMsg({
cmd,
val,
val_t,
props = {},
timeoutMs = 10000,
}: {
address: string;
@@ -50,6 +51,7 @@ export async function sendFimpMsg({
cmd: string;
val: unknown;
val_t: FimpValueType;
props?: any;
timeoutMs?: number;
}): Promise<FimpResponse> {
const uid = uuidv4();
@@ -57,7 +59,7 @@ export async function sendFimpMsg({
const message = JSON.stringify({
corid: null,
ctime: new Date().toISOString(),
props: {},
props: props,
resp_to: 'pt:j1/mt:rsp/rt:app/rn:ha-futurehome/ad:addon',
serv: service,
src: 'ha-futurehome',