openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

Wait for state confirmation of the action during execution #164

Open DivineThreepwood opened 4 years ago

DivineThreepwood commented 4 years ago

If a hue is just turned on and in parallel a color event is send, then in most cases the color event does not reach the hue. Implement a strategy in the ActionImpl to wait for a state confirmation, e.g. color set to green -> wait until hardware confirms the state, otherwise validate the online state and resent when hardware is online.