I bought an Xbee 3 zigbee device. I configured it as an zigbee end device and inlcuded it into my zigbee network. So ZHA integration detected it and created a new ZHA device. But of course its only a dummy because the xbee is not yet programmed.
With
import xbee
target = b'\x00\x0d\x6f\x00\x0d\xd0\x28\x7c'
msg = 'test'
xbee.transmit(target,msg)
I can send sth. to the coordinator.
But how can I implement a (dummy) sensor or switch with micropython?
I’m looking for an example for sth. like a text sensor which always reports “hello” to HA.