XBee3: how to create a zigbee end device

I have an XBee3 configured as an zigbee end device. I included it in my home assistant zigbee network. Now I want to configure/program the XBee3 to behave like a switch with a temperature sensor. So it needs a TemperaturMeasurementCluster and a OnOff cluster. How do I do that?

You will need to write that into your Micro Python code. You will need to list what End points and clusters you need to use in your code and to look for them in the packets.

are there any examples how to do this?

Not that I am aware of.

Hello,

Did you find any solution or example? I am also interested…

Thanks

Sorry, I did not find a solution…