touch
This commit is contained in:
@ -33,7 +33,7 @@ export class TouchSwitchMultiButtonThing extends AItem {
|
||||
private itemObjs: TouchSwitchButtonSingleItem[]
|
||||
private readonly deviceTopicPre: string
|
||||
|
||||
constructor(floor: string, room: string, item: string, hmId: number, itemObjs: TouchSwitchButtonSingleItem[]) {
|
||||
constructor(floor: string, room: string, item: string, itemObjs: TouchSwitchButtonSingleItem[]) {
|
||||
super(floor, room, item, '')
|
||||
this.itemObjs = itemObjs
|
||||
this.deviceTopicPre = `IoT/Touchswitch/${this.floor}/${this.room}/${this.item}`
|
||||
|
@ -20,6 +20,7 @@ import { MaxWindowContact } from './MaxWindowContact'
|
||||
import { UrlSwitchItem } from './UrlSwitchItem'
|
||||
import { Cron } from './Cron'
|
||||
import { HueColorBulbItem } from './HueColorBulbItem'
|
||||
import { TouchSwitchMultiButtonThing, TouchSwitchButtonSingleItem } from './TouchSwitchMultiButtonThing'
|
||||
|
||||
logger.info("Dispatcher starting")
|
||||
|
||||
@ -149,6 +150,9 @@ let bedRoomWolfgangBedLight = new HueColorBulbItem('1st', 'BedRoom', 'WolfgangBe
|
||||
bedRoomWolfgangBedLight.start()
|
||||
allLabeledItems.push(bedRoomWolfgangBedLight)
|
||||
|
||||
let touchSwitchMultiButtonThing = new TouchSwitchMultiButtonThing('1st', 'Bedroom', 'Wolfgang',
|
||||
[ new TouchSwitchButtonSingleItem(bedRoomWolfgangBedLight.getStateTopic())])
|
||||
|
||||
// Schlafzimmer Pattys Seite 13980756 24 1 13980753 24 1
|
||||
let bedRoomPattysSide = new M433SwitchItem('1st', 'BedRoom', 'PattysSide', 'Pattys Seite Schlafzimmer', '13980756 24 1', '13980753 24 1')
|
||||
bedRoomPattysSide.start()
|
||||
|
Reference in New Issue
Block a user