konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
416 stars 322 forks source link

API Enhancement: zone instead of pin identifiers #165

Closed heythisisnate closed 2 years ago

heythisisnate commented 2 years ago

Enhance the device API to use zone instead of pin to identify inputs and outputs. Since the inception of this project, we use pin mapping to NodeMCU digital pins 1,2,5,6,7,8 and 9. This is confusing, because they don't all line up with zone numbers on the board.

Like we do for the Konnected Pro, for better usability and understandability, we should expose zone 1 thru 6 and out in the device API. This will also have to incorporate a migration and/or backwards compatibility.