Use light entity for out_lvl_switch if the device type is "light"

This commit is contained in:
Adrian Jagielak
2025-09-28 14:57:37 +02:00
parent 91c33b33cd
commit fdc65a0bd5
6 changed files with 319 additions and 37 deletions

View File

@@ -80,9 +80,7 @@ import { pollVinculum } from './fimp/vinculum';
const hubId = house.val.param.house.hubId;
const devices = await pollVinculum('device');
log.debug(
`FIMP devices:\n${JSON.stringify(devices, null, 0)}`,
);
log.debug(`FIMP devices:\n${JSON.stringify(devices, null, 0)}`);
const haConfig = retainedMessages.filter((msg) =>
msg.topic.endsWith('/config'),
@@ -191,7 +189,11 @@ import { pollVinculum } from './fimp/vinculum';
log.error('Failed publishing device', device, e);
}
}
if (demoMode || thingsplexAllowEmpty || (thingsplexUsername && thingsplexPassword)) {
if (
demoMode ||
thingsplexAllowEmpty ||
(thingsplexUsername && thingsplexPassword)
) {
Object.assign(
commandHandlers,
exposeSmarthubTools({