Page 1 of 1

lastUpdate doesn't get updated for "Push On Button" switch type

Posted: Saturday 11 May 2024 15:17
by plampix
Good day,

I'm having an issue with a Tuya fingerbot. If I add the switch as an On/Off switch, push the button in Domoticz, lastUpdate gets updated. If I change the type to a "Push On Button", lastUpdate doesn't get updated by pushing the button in domoticz, or dzvents, but it does get updated when I press the button on the fingerbot itself.

Is this intended behaviour?

Re: lastUpdate doesn't get updated for "Push On Button" switch type

Posted: Sunday 12 May 2024 15:25
by waltervl
I only checked the push button from UI (version 2024.4) but there I see the last update status change correctly. Could be you have to refresh the page?

In Dzvents you can only query the last update status on the start of the script execution. So if you ask ask the state again after you have switched the switch you will get the old state. This is probably intended to prevent race conditions.