integration within Homey #126
Replies: 3 comments 8 replies
-
Hi @Aybert59 that's great. Thanks for the information 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
Why are you using this while loop instead of const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
while (true) {
this.log('syncing...');
await this.syncStatus(this.vacbot)
.catch(error => {
this.log('Sync error :', error);
});
await delay(SYNC_INTERVAL);
} @cactusss, you maybe already changed it. But the latest code you sent me used that while loop too. Btw.: You don't have to poll for |
Beta Was this translation helpful? Give feedback.
-
Yes, I changed it already. I think the reason @Aybert59 did it this way because in a setInterval the command |
Beta Was this translation helpful? Give feedback.
-
Dear sir
just to let you know, that I started to integrate your library within the Homey ecosystem
https://homey.app/fr-fr/app/com.messiant.ecovacs/Ecovacs/
https://github.com/Aybert59/com.messiant.ecovacs
Beta Was this translation helpful? Give feedback.
All reactions