Fix includeRoomsAsLights and improve logging

This commit is contained in:
Victor Hagelbäck 2021-01-16 09:14:33 +01:00
parent fe8d2b84f1
commit 58d2893f71
2 changed files with 35 additions and 42 deletions

View file

@ -16,7 +16,7 @@ async function main() {
config.connectionTimeout = 2;
}
const plejdApi = new api.PlejdApi(config.site, config.username, config.password);
const plejdApi = new api.PlejdApi(config.site, config.username, config.password, config.includeRoomsAsLights);
const client = new mqtt.MqttClient(config.mqttBroker, config.mqttUsername, config.mqttPassword);
plejdApi.login().then(() => {