rossmann-engineering / Collibellex-Thingsboard-Widgets

Widget Library for Thingsboard
MIT License
163 stars 72 forks source link

Problem with switch widget #3

Open kamarisoim opened 2 years ago

kamarisoim commented 2 years ago

Firstly thanks for sharing your widget Some problem with switch widget When clicking the switch very quickly, at certain time, the switch will send on/off data repeatedly...without stopping I set retrieving data with timeseries...to update switch state on other dashboard browser The convert value function is something like below if(value) return {'DO11': '1'}; else return {'DO11': '0'}; When click the switch quickly...setValue will keep sending 1 and 0 This not happen in TB switch Thanks in advance for you help

rossmann-engineering commented 2 years ago

Which Switch do you use, we have four switches.

kamarisoim commented 2 years ago

Switch 1 n 2

On Wed, 1 Dec 2021, 19:24 rossmann-engineering, @.***> wrote:

Which Switch do you use, we have four switches.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rossmann-engineering/Collibellex-Thingsboard-Widgets/issues/3#issuecomment-983497581, or unsubscribe https://github.com/notifications/unsubscribe-auth/APUMVWTFVPD4HKBKQ5BM2XLUOXZUTANCNFSM5JEB2ZBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kamarisoim commented 2 years ago

Pls refer attchment for details, hopefully tb_sw_problem.txt

kamarisoim commented 2 years ago

Sorry...any update?

rossmann-engineering commented 2 years ago

Should hopefully solved now at least for switch 1

kamarisoim commented 2 years ago

Thank you...I'll try