The "pintype" property for servos, sernsors and LEDs is presently a combined list of directly controlled servos (pintype 0) and servos connected via a port extender (0x20..., 0x40...). This is complicated to handle in code and leads to confusion upon maintenance and debugging.
Pintype should be a short list of directly controlled, pca9685 and mcf23017. The address of the specific port extender should than be in another property.
Mixing other aspects like remote and virtual sensors into "pintype" should also be reviewed and refactored.
The "pintype" property for servos, sernsors and LEDs is presently a combined list of directly controlled servos (pintype 0) and servos connected via a port extender (0x20..., 0x40...). This is complicated to handle in code and leads to confusion upon maintenance and debugging.
Pintype should be a short list of directly controlled, pca9685 and mcf23017. The address of the specific port extender should than be in another property.
Mixing other aspects like remote and virtual sensors into "pintype" should also be reviewed and refactored.