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

Moderator: leecollings

Post Reply
plampix
Posts: 2
Joined: Monday 17 July 2017 13:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest