Jan-15-2022, 07:08 PM
Is there a way to query the current relay state? Turning off all the relays just because you started the program is rude. If there is a query that will return the state I would add that to the __init__() method and use that info to initialize _on and set the initial button image.