- โ How to customize relay names in OceanRemote
- โ Changing relay logic (Positive/Negative) after device creation
- โ Best practices for naming relays
- โ Understanding when to change logic settings
- โ Managing multiple relays effectively
Why Customize Relay Names?
Default relay names (Relay 1, Relay 2, etc.) work fine, but custom names make your dashboard much easier to use:
- Instant recognition - "Living Room Light" instead of "Relay 1"
- Fewer mistakes - Less chance of turning off the wrong device
- Professional appearance - Clean, organized dashboard
- Multi-language support - Use any language or characters
- Family-friendly - Anyone can understand what each button does
Example of Customized Dashboard: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ My Devices โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ Kitchen Controller โ ONLINE โ โ โ โ โ โ โ โ RELAYS โ โ โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ โ โ โ ๐ป ๐บ ๐ป ๐บ โ โ โ โ โ Lights โ โ Fan โ โ Pump โ โ Heater โ โ โ โ โ โ OFF โ โ OFF โ โ OFF โ โ OFF โ โ โ โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
How to Customize Relay Names
Method 1: During Device Creation (Recommended)
- Go to "Add New Device" page (/your-device/)
- Fill in your board type, WiFi credentials, and sensor settings
- In the "Relay Configuration" section, you'll see 5 fields:
| Field | Example | Character Limit |
|---|---|---|
| Relay 1 Name | "Living Room Light" | 15 characters |
| Relay 2 Name | "Ceiling Fan" | 15 characters |
| Relay 3 Name | "Water Pump" | 15 characters |
| Relay 4 Name | "Garage Door" | 15 characters |
| Relay 5 Name | "Sprinklers" | 15 characters |
| Relay | Recommended Name | Notes |
|---|---|---|
| Relay 1 | "Living Light" | Main living room light |
| Relay 2 | "Ceiling Fan" | Ceiling fan control |
| Relay 3 | "TV" | TV power (via smart plug) |
| Relay 4 | "Heater" | Space heater control |
| Relay 5 | "Night Light" | Bedroom accent light |
Garden/Aquaponics
| Relay | Recommended Name | Notes |
|---|---|---|
| Relay 1 | "Water Pump" | Circulation pump |
| Relay 2 | "Air Pump" | Aeration pump |
| Relay 3 | "LED Light" | Grow lights |
| Relay 4 | "Heater" | Water heater |
| Relay 5 | "Feeder" | Auto fish feeder |
Workshop/Garage
| Relay | Recommended Name | Notes |
|---|---|---|
| Relay 1 | "Shop Light" | Main workshop lighting |
| Relay 2 | "Dust Collector" | Dust extraction system |
| Relay 3 | "Air Compressor" | Compressor control |
| Relay 4 | "Fan" | Ventilation fan |
| Relay 5 | "Charger" | Battery charger control |
OceanRemote supports UTF-8 characters, so you can use any language for relay names: ๅฎขๅ ็ฏ (Chinese), Lumiรจre salon (French), Luz sala (Spanish), etc.
Managing Logic Changes
When to Change Logic:
- You bought a new relay module with different logic
- Your relay clicks when you expect OFF (logic is reversed)
- You're replacing a faulty relay module with a different type
- You switched from 5V to 3.3V relays (some have different logic)
How Logic Affects Existing Automations:
- If you have automations (IFTTT, webhooks, scheduled tasks), changing logic will affect their behavior
- Test your automations after changing logic
- You may need to update your automation scripts
If you have automations that rely on relay state, changing logic may cause unexpected behavior. For example, if an automation turns ON the relay at sunset, changing logic from Positive to Negative will make the relay turn OFF at sunset instead.
Advanced: Programmatic Name Changes via API
For advanced users, you can change relay names programmatically using the OceanRemote API:
// Example: Change relay name via API (requires authentication)
POST https://www.oceanremote.net/api/device/[DEVICE_ID]/update/
Content-Type: application/json
{
"relay_name_1": "Living Light",
"relay_name_2": "Ceiling Fan",
"relay_logic_1": "negative",
"relay_logic_2": "positive"
}
Full API documentation is available at /api/docs/ (requires login). You can use the API to automate device configuration changes.
Troubleshooting
Problem: Relay name not updating in dashboard
- Refresh the page (Ctrl+F5 or Cmd+Shift+R)
- Clear browser cache
- Check if you clicked "Save" after editing
- Try logging out and back in
Problem: Name is truncated on mobile
- Shorten the name (max 10-12 characters for mobile safety)
- Use abbreviations: "Liv Light" instead of "Living Room Light"
- Use icons in the name? (โ ๏ธ Icons may not display on all devices)
Problem: Relay logic change doesn't work
- Wait 30 seconds for changes to propagate
- Check if the device is online (green status)
- Power cycle the device
- Test with a multimeter to confirm GPIO pin state
| Feature | Details |
|---|---|
| Max name length | 15 characters |
| Supported characters | UTF-8 (any language) |
| Logic options | Positive (๐บ) or Negative (๐ป) |
| Change requires re-flash? | No (instant) |
| Affects automations? | Logic changes do; name changes don't |
| Can be changed via API? | Yes |