Node-Red GPIO on HA

A possible solution: