Share Your Device! - Advanced Virtual Devices from Device Capabilities

Debounce Example for Status Indicator Text Update every 3 seconds

This is an example of how to use the Debounce function of Advanced Triggers - Forum Topic.
It shows how you could use the Debounce function to keep the Status Text update from overloading the Homey App, by making sure the Status Text is only updated every 3000ms (you can set this yourself).

I used Simple LOG to write into a log, but you can replace that off course.


Apps used:


TEF:

[tef:AVD,FLOWS:"H4sIAAAAAAACA9VX2Y6byhb9lchP98ohXUABhaX74NnG89x2FLVqAmMGY4a26Sj/fgqcPrndx8mx8hYjgalh195rrb2r+Fph/NmlvE+PYaVW6cGkX7/+mnVjvVKUIxnNG+bSbT0cJ9qyrg2SKtqMu1q0mJ2anZnbfb6svfiQ+IFczTPyoOq9E1DHg03HPLXl+T4e90YKHWlDBYbDh7XVSXGcrlcIDfLVurHygeLKGzNsbMhDpHfg8zBVeNgZINJnOFpOqlXCvJgPdydj3tVPOJ3KDkyOxmTT9NyqKleXLTtVwNT2KdmRJHJ3iI4hd0FuQTCYnZBy2uwbl6WzP0weq+oj0b3+LMs3ST44PIxbODbd+m4nj/OEV0NohquLkl1UGzMd5NBbzLz8zLfzkWluTvbzma1G260FRivQ8fbyc9bs9Y0XhXuWgo2FcYqt+mLQH4+tl+kKdnQ7avmbXeeUMXW9sVT0YF2UJSb80E0BNJATopeV5Su6GlhLnigMhyxyB8PHbh9m68O0eqZNuqui5vgyP22GXrKZ4wHWo21rC40oyGmrT8AsgmOL+quXpm8uL4uWFUWQBC4I/SzodJuBbA28RWdx1qt1tLro2sDqbjLNaVy0+YO+GIV+EnBczzPnpTPNncSjp00+6B617W5wzjdrZ7ZrryfN064/etziWdOdX8LJrj63ZqkL6x0XOOmMnXFAk8NwNHX3I2va1TYv2yjqNRZ4u197ozYfXh5XYWd4mGMn7K1P2FdHFmsPlgS0oySnaae1jQeXxktzsI/GWFcbq8MctltO5CWXlgvA/nIgo2ajsVi0vXEQHxdI01pz/eidKSODw0v2Mrys+lWPtmRgKftWfhzOtHzSWzqDcR931R7oNdawp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