Every action call returns one or more StateVariables?. Currently a callback within the action call is used to return the StateVariables? to the calling method.
I think it makes more sense if the returned StateVariables? are propagated through the normal/existing event notification mechanism, meaning the StateVariable? subscription callbacks are automagically triggered when the action call returns successfully.
Things that need to be taken into consideration:
- actions with only one StateVariable? in return only return the value, not a dict with StateVariable:value pairs
- the instance the action call is for isn't returned and needs therefore be retained over the call
- if nothing is subscribed to a StateVariable? change, the result of the action call deflagrates