I want to add 2-pole momentary push-button (switch) for my covers.
Integration goes through a NodeMCU and ESPHome.
I'm having a hard time understanding the schematics for this switch:

I'm not sure how to connect the inputs/outputs to a NodeMCU in order to have a response in my logs. (Only one pin for example D1 to be reactive when I hold my push button.)