Support "optimistic" switches #280
Labels
1-wire
fault tolerance
hardware driver
optimization
performance
reactive
Pertinent to Reactive branches only
XBee
Z2M
Z-Wave
Zigbee
Existing Behavior
Hardware drivers verify results of
setState()
withgetState()
. Benefits: guaranteed behavior. Disadvantages: complicated control logic, chances to get stuck.Problems with Existing Behavior
One particularly vile problem is with ESPHome switch MQTT component which reports the hardware state if it changes but doesn't report it if it stays the same, resulting in an apparent deadlock.
Behavior Adjustment
It is possible to treat hardware as 100% reliable and assume that it always accepts and executes commands, as long as reliability is enforced by other means.
Mandatory precautions
Related Issues
#47, #271, #290
The text was updated successfully, but these errors were encountered: