Fix startup on empty configuration
Toggle relay implementation