Fix includeRoomsAsLights and improve logging
This commit is contained in:
parent
fe8d2b84f1
commit
58d2893f71
2 changed files with 35 additions and 42 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue