I had a test setup that also had a sensor looking down so I could 'see' if my car was parked in the garage or not.... if distance < 1m == car parked.
My garage door opener is directly above my car when its parked.
Some more info on the cube can be found at the homeassistant forums
This is how it looks like at the moment.
Still taped together as everything is beta stage.
Thank you for answer.
See this link for an project based in this.
Its basically a scène controller in the shape of a cube.
I got the idea from the original poster in the thread over at home-assistant.
I will post a BOM, sketch and pics if someone wants me to.