Relay state and safety
What the relays do at boot, after a power cut and when the network drops, and how to use AI control safely.
Read this before you switch mains
- Relays can switch 220 V mains. A wiring mistake can cause electric shock or fire. Have a qualified person do the mains side.
- EDEXTRON is a hobby and maker product. Never use it for safety-critical equipment, life support, medical devices, or anything where an unexpected ON or OFF could hurt someone.
- Keep Allow AI control off for heaters, pumps, motors, machines and anything that could be dangerous if it switches while nobody is watching.
At power-up and after a power cut
- Every relay starts OFF when the board boots. The standard firmware does not restore the previous state (
RESTORE_OUTPUTS_ON_BOOT false). - During a power cut the relay modules lose power too, so their contacts go back to the resting position. When power returns, the relays stay OFF until someone switches them.
- If a load should be off whenever the board is off or rebooting, wire it to the relay's normally-open (NO) contact.
When Wi-Fi or the cloud drops
- Relays keep their current state. Losing the connection never switches anything.
- The cloud never queues commands for an offline board. A command sent while the board is offline fails straight away with "The board is offline. No command was sent." Nothing switches later by surprise.
- The local web page, MQTT and the optional kit button keep working on your home network while the cloud is unreachable.
How a cloud command is confirmed
- The dashboard or an AI asks the cloud to switch a relay.
- The cloud sends the command once, with a 5-second deadline.
- The board checks the deadline, sets the GPIO, and replies with the new state of all its relays.
- Only then does the dashboard show Board confirmed, or the AI tool report success.
If no reply arrives within 5 seconds, the result is unknown: the board may or may not have switched. The dashboard says "Outcome unknown. The board may have switched. Check the board before trying again." Check before you retry, especially with TOGGLE: a repeated toggle undoes the first one.
Other rules:
- A board accepts one cloud command at a time. A second command during the wait gets "Another command is awaiting confirmation. No command was sent."
- Each board accepts at most about 2 cloud commands per second.
- If the board has not reported for 75 seconds, its relay states are shown as Last known state (board offline).
What "ON" really means
The state the board reports is the GPIO level the firmware set. It is not proof that the relay contacts moved. A welded contact, a missing relay module or a wiring fault will not show up in the dashboard. If it matters, check the load itself.
AI control
- Off by default for every relay.
- Can only be changed in the web dashboard (Allow AI control), never with an AI key. The dashboard asks you to confirm before turning it on.
- Only limits AI keys. You can still switch the relay yourself from the dashboard, the local web page, MQTT or a button.
- An AI key can only switch relays if it has the "Switch relays" permission. See Keys and revocation.
Local control has no password
The board's local web page and HTTP API have no password. Anyone on the same Wi-Fi network can switch the relays. Only use the board on a network you trust, and keep guests on a separate guest network.