This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
forked from guino/tuyaha
-
Notifications
You must be signed in to change notification settings - Fork 8
Make refresh period configurable #11
Labels
question
Further information is requested
Comments
Hi Trekkir, |
Hi, I have a plug turning itself on when the doorbell camera is pushed (using the Tuya scene in the Tuya app itself).
A blocky event in Domotica triggers on the On state of that plug by triggering a script that will send me a snapshot of the doorbell camera by email and finally turning the plug back off.
But the 10s delay in your plugin means a maximum delay of 19s between pressing the doorbell and my script being executed and I would like to process that a bit faster.
I found the time.sleep at line 210, but doesn't that mean 0.5 seconds delay?
…________________________________
From: Xenomes ***@***.***>
Sent: Friday, June 25, 2021, 21:06
To: Xenomes/Domoticz-TUYA-Plugin
Cc: trekkir; Author
Subject: Re: [Xenomes/Domoticz-TUYA-Plugin] Make refresh period configurable (#11)
Hi Trekkir,
What is the reason you want a refresh period? If you want to change it I think the wait on line 210 is the best to start.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUS5D76RNVUSLMRD2BT7AFDTUTHSDANCNFSM47F5VMJQ>.
|
Ok, I understand your problem. The 10 seconds I the shortest time I could get to pull data from the API of Tuya there is not a lot of time to win there. |
Ah ok, so it's not specified in the plugin itself?
…________________________________
From: Xenomes ***@***.***>
Sent: Friday, June 25, 2021 10:15:07 PM
To: Xenomes/Domoticz-TUYA-Plugin ***@***.***>
Cc: trekkir ***@***.***>; Author ***@***.***>
Subject: Re: [Xenomes/Domoticz-TUYA-Plugin] Make refresh period configurable (#11)
Ok, I understand your problem. The 10 seconds I the shortest time I could get to pull data from the API of Tuya there is not a lot of time to win there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUS5D77DQCSM7PCBVEKPS4TTUTPUXANCNFSM47F5VMJQ>.
|
Nope. Maybe you can use a IFTTT or DZGA |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @Xenomes,
First of all, thank you for your work!
I do have a request; Currently, the refresh period is set to 10 seconds. Is it possible to make it configurable on the Hardware settings page?
I can't seem to find the exact configuration in the python file to modify it myself (basic programming knowledge on my side must be the problem here), so if my request isn't something you want to implement, could you point me in the right direction where I can change that 10 seconds myself?
The text was updated successfully, but these errors were encountered: