Is device.updateStatesOnServer() atomic?

Posted on
Fri Dec 02, 2016 8:17 am
FlyingDiver offline
User avatar
Posts: 7227
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Is device.updateStatesOnServer() atomic?

That is, will all states provided be updated before any triggers based on those states are executed?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Dec 02, 2016 10:33 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Is device.updateStatesOnServer() atomic?

Correct, all states are updated then the triggers are processed.

Image

Posted on
Fri Dec 02, 2016 10:35 am
FlyingDiver offline
User avatar
Posts: 7227
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Is device.updateStatesOnServer() atomic?

Good, then I don't need to add a generic "states have changed" Event to my plugin. I've had to do that in the past because I didn't want to count on the order of state updates when triggering on a specific state changing.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest