Simple button #hacs

I understand that for the follow simple button I must install HACS?!
For HACS I need a Github account, so I can’t run it offline?
What do I need if I get this error: "You are marked as spam, and therefore cannot authorize a third party application.”

Simple button:
How do I configure a button where the color is green if the devices* is off and the action is to turn it on. And the color is red when the devices is on and the action is turn off.

*my AVR