05-14-2021, 06:11 AM
This is because of we have one MQTT state topic for all relays and last state is not persisted by broker. Possible solution here could be to have separate state topics (one per relay) and publishing states with RETAINED flag set.