Websocket Monitor for door sensors

This commit is contained in:
2024-12-17 23:24:19 -05:00
parent a5725edb36
commit 7a71b0c216
8 changed files with 75 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ if (config.servers.deconz.apiKey.length > 0 && !cli.flags.force) {
process.exit(1)
}
axios.post(config.servers.deconz.url + '/api', {
axios.post(`http://${config.servers.deconz.url}:${config.servers.deconz.apiPort}/api`, {
devicetype: config.servers.deconz.clientName +'l',
})
.then(response => {