openhab export added
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import * as logger from './log'
|
||||
import { mqttHandler } from './MqttDispatcher'
|
||||
import { AItem } from './AItem'
|
||||
import { SwitchHomekitExport, HomekitExportType } from './Export'
|
||||
import { SwitchExport, ExportType } from './Export'
|
||||
|
||||
|
||||
export class M433SwitchItem extends AItem {
|
||||
@ -27,8 +27,8 @@ export class M433SwitchItem extends AItem {
|
||||
this.type = type
|
||||
}
|
||||
|
||||
exportHomekit() : HomekitExportType {
|
||||
return SwitchHomekitExport(this.itemId, this.label, this.stateTopic, this.stateFeedbackTopic, this.type)
|
||||
exportItem() : ExportType|null {
|
||||
return SwitchExport(this.itemId, this.label, this.stateTopic, this.stateFeedbackTopic, this.type)
|
||||
}
|
||||
|
||||
processMessage(topic: string, payload: string) {
|
||||
|
Reference in New Issue
Block a user