Piface don't work

My PiFace does not work correctly.
All the outputs worked perfect if I give a command in HA
But if I switch an input sometimes it takes a few minutes before I see this in HA.
If I reboot HA then I see it immediately what the state is , If I push another button then there’s no reaction.
What I’m doing wrong?

Hello, i have no knowledge about programming. But would like to setup piface on my homeassistant but try in vain. i edited the configuration yaml but have errors. Could you help me to set it up.
Thank you.

I changed from Domoticz to HA. I used a Piface Digital 2 to control a relay.
Now I try to get this Piface running on HA, but it’s a struggle.
I see other posts but few answers about HA with Piface Digital 2.

@19roland70 Did you get the Piface up and running in the end? Can you tell me how?