Came ZA3 gate controller with ESPHome

Hi,
Thanks for all information posted here.
My gate has a Came BXV controller and I also wanted to control it from Home Assistant, so I used a D1mini (ESP8266) with ESPHome to build the cover.
I am sensing information both from the limit switches to determine when the gate is fully open or closed, and also from the motor to know if the gate is moving (and in which direction). This allows ESPHome to evaluate the position of the gate, even if it is controlled using the original Came remote control.
Here is a demo video: https://youtu.be/gJ1Nn_VbDwY
And all details, code and schematics are in this blog post:
Introducing CHAI - a CAME gate controller to Home Assistant Interface - Vince's thoughts
Happy hacking !

Vincent