Automation Phat inputs

Seems there might be a bug in the home assistants code, that can miss gpio input changes, will have to think of another way to monitor my relay, thanks for the help