This can be achievable by using a TLP5110, this device is only consuming (sipping) 35nA. and then the comment from rozpruwacz is very valid, that you need to be careful of battery self discharging
The you can use a switch to wakup the MCU when window is opened, and provide a resister value to TPL5110 to startup MCU once per day, to give a heartbeat signal that sensor is alive
http://www.ti.com/lit/ds/symlink/tpl5110.pdf
I would think you could do this by setting up a sensor as a switch. Another one would be set up to communicate with the first instead of sending to the gateway. The first one is made to set itself as "off"(no presence) on the gateway if it hasn't received a ping from the actual presence sensor in the past, say, 5 seconds. When it does see a ping, switch set to on.
Thanks, I'll install a domoticz again to my NAS Synology... I don't have choice if I want to use V_TEXT... ;-)
So I don't know how to communique between Jeedom and Domoticz efficiantly, I'll search...
Great !...