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

Usage of GPIO16/D0 #160

Closed AddoSolutions closed 2 years ago

AddoSolutions commented 2 years ago

Hello, I need to modify my version of this device to use GPIO16 in exchange for the pin used for "OUT or ALARM", as that GPIO by default is not accessible.

I have scrubbed the source and am having a hard time finding where that mapping is.

Does anyone know where I could be able to find this?

Thanks!

AddoSolutions commented 2 years ago

Found it, it's done by the software configuring the device. Nice

https://github.com/home-assistant/core/blob/dev/homeassistant/components/konnected/const.py#L42