add summer/winter switch
This commit is contained in:
@ -337,6 +337,8 @@ let relayBox = new RelayBoxThing('base', 'labor', 'relaybox', 'IoT/Command/Relay
|
||||
relayBox.start()
|
||||
allLabeledItems.push(relayBox)
|
||||
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
let testFourButton = new HomematicFourButtonThing('Gnd', 'Hallway', 'TestButton', 9, [
|
||||
new HomematicFourButtonSingleItem('dispatcher_ng/items/Gnd/Hallway/Testlight/dimmerIn'),
|
||||
@ -398,6 +400,13 @@ allLabeledItems.forEach((item: AItem) => {
|
||||
// logger.info(JSON.stringify(openhabList))
|
||||
}
|
||||
})
|
||||
|
||||
let summerSwitchExport : ExportType|null = MaxThermostat.exportSummerSwitchItem()
|
||||
if (summerSwitchExport != null) {
|
||||
let da : string = summerSwitchExport['openhab'] as string
|
||||
openhabList.push(da)
|
||||
}
|
||||
|
||||
fs.writeFileSync(config.dict.homekitFile, JSON.stringify(homekitObject, null, 4))
|
||||
fs.writeFileSync(config.dict.openhabItemFile, openhabList.join('\n'))
|
||||
|
||||
|
Reference in New Issue
Block a user