## Digital GPIO
Digital input/output pins are exposed as switches.
To use this functionality must configure the xbee to send samples to the coordinator, `DH` and `DL` to the coordiator's address (0).
The switch state will change depending on the state.
There are two options of reporting the pin state: periodic sampling (`IR`) and on state change (`IC`).
To configure reporting on state change please set the appropriate bit mask on `IC`, and to send perodic reports every x milliseconds please set `IR` to a value greater than zero.
The recommended approach is to combine both methods. Please note that Home Assistant will mark a zigbee device as unavailable if it doesn't send any communication for more than two hours.
If you want the pin to work as input, it must be configured as input with XCTU.
If you want the pin to work as output, it is still important to configure the sample reporting in order to know the state of the switch.
Currently digital output requires the coordinator to be XBee as well. THe input should work with any coordinator but this is untested.
## Analog Input
The analog input pins are exposed as sensors.
This file has been truncated. show original