App and driver porting to Hubitat

driver sendEvent difference
In a driver after issuing a sendEvent for an attribute,

sendEvent(name: "armMode", value: armMode)

then subsequently in the same event issuing a

device.currentState("armMode")

the value of the attribute at the beginning of the event is returned, not the current actual value as done in ST

The solution

2 Likes