Blind controller with Arduino+Raspberry Pi

One more time I need your help.
I want control my home blinds withe one Arduino conected to a Raspberry pi runing on Hasbian.
My idea is that.
I use one shield with 4 arduino relays. With two relays I control the blind motor, one relay for open and one relay for close. With the other two relays I control the button switch that control the blind. When someone pull the switch closes the relay and that activate one Arduino input.
With this idea I need 4 pins for each blind, and I don’t know how can I do if some pull the physical button and I activate the opposite command in the homeassistant.
Do you know that is better use another device diferent that Arduino, maybe Z-wave or another.
Iam too glad to hear all your suggestions.

Thanks to all.