mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-01-18 15:45:38 +00:00
Use light entity for out_lvl_switch if the device type is "light"
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user