Homemade Battery operated zigbee roller shade possible?

I have several IKEA roller shades but 2 of them are burned out. But their motors are ok. So I’m trying to replace the circuitry with a seeed studio xiao esp32c6. But, looking at the zigbee examples, I can’t figure out how you can put the esp32 in deep sleep but being able to wake it when I need to roll up the shade.

All the examples I find are all based on the zigbee device sending information when it wakes up. Using this method, I would need to wait, let’s say… 10 minutes before the shade react to my command. 10 minutes is based on giving me a descent battery life. I’m really wondering how to do it. Anybody has a suggestion?

What firmware architecture are you using. Otherwise you will get random answers. Esphome, Tasmota, Arduino? Something else?

Not sure I understand you! I’m talking about making something from scratch that is talking to a zigbee concentrator compatible to any zigbee. I didn’t think it mattered which architecture is used in that case. Isn’t? Of course I want to make it talk to home assistant.

So far I used the example from espressif and this is connecting just fine with ha via zigbee. The only problem is the power consumption when powered by battery.