add summer/winter switch
This commit is contained in:
@ -51,6 +51,11 @@ export function RelayBoxExport(itemId: string, stateTopicPre: string, feedbackTo
|
||||
'openhab': RelayBoxOpenHABExport(itemId, stateTopicPre, feedbackTopicPre, conflictTopicPre, itemNames)}
|
||||
}
|
||||
|
||||
export function SummerSwitchExport(summerSwitchTopic: string) : ExportType {
|
||||
return {'homekit': {'id':'', 'object': {}},
|
||||
'openhab': `Switch SummerSwitch "Winter?" {mqtt=">[localbroker:${summerSwitchTopic}:command:*:default],<[localbroker:${summerSwitchTopic}:state:default]"}`}
|
||||
}
|
||||
|
||||
function RelayBoxHomekitExport(itemId: string, stateTopicPre: string, feedbackTopicPre: string, conflictTopicPre: string, itemNames: string[]) : HomekitExportType{
|
||||
return {'id': '', 'object': {}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user