heartbeat stuff
This commit is contained in:
7
dist/main.js
vendored
7
dist/main.js
vendored
@ -391,6 +391,13 @@ testForwarder.start();
|
||||
let testScene = new Scene_1.LightScene('Gnd', 'Hallway', 'TestScene', 'TestScene', [aquariumLight, annaBedLight], [matthiasStandLights, matthiasBedLight]);
|
||||
testScene.start();
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
// heartbeat
|
||||
let heartbeatCounter = 0;
|
||||
let heartbeatTimer = setInterval(() => {
|
||||
heartbeatCounter += 1;
|
||||
MqttDispatcher_1.mqttHandler.send(config.dict.heartbeatTopic, `${heartbeatCounter}`);
|
||||
}, config.dict.heartbeatInterval);
|
||||
// ----------------------------------------------------------------------------------------------------------
|
||||
// Homekit export
|
||||
let homekitObject = {};
|
||||
let openhabList = [];
|
||||
|
Reference in New Issue
Block a user