Projection, Signage & Smart Home

Shelly Smart Home Control Software

Control for Shelly smart home devices. Auto-detects Gen1 (HTTP polling) or Gen2/Gen3 (WebSocket RPC with real-time push feedback). Dimmer, RGB(W) and CCT brightness, colour temperature, colour channels and cover position can be driven from…

Handlers run inside Fantago — the file is a plugin, not a standalone program. Start with the free 60-day trial.

How to connect Shelly Smart Home to Fantago

  1. Open the Fantago Dashboard and click Add Device.
  2. Pick the Shelly Smart Home handler from the device type list (internal id shelly).
  3. Enter the IP address of your Shelly Smart Home, then set protocol HTTP / WebSocket RPC and port 80.
  4. Save and connect. Fantago starts polling the device and publishes its feedback variables, ready to use in panels, sequences and logic flows.
  5. Drag the actions below onto a panel button, a Stream Deck key, a schedule or a logic flow node.
Shelly Smart Home handler specifications
ProtocolHTTP / WebSocket RPC
Default port80
Handler version1.1.1
AuthorFantago Bridge
Internal IDshelly

Description & Instructions

Control for Shelly smart home devices. Auto-detects Gen1 (HTTP polling) or Gen2/Gen3 (WebSocket RPC with real-time push feedback). Dimmer, RGB(W) and CCT brightness, colour temperature, colour channels and cover position can be driven from panel faders, rotaries and Stream Deck + dials.
Setup: Enter the device IP. Port defaults to 80. Username/Password only if authentication is enabled in the Shelly app.

Supported Device Types & Actions

CategoryActions
Switch / Relayswitch_on, switch_off, switch_toggle
Light / Dimmerlight_on, light_off, light_toggle, light_brightness, light_color_temp
RGB / LED Striprgb_on, rgb_off, rgb_toggle, rgb_set_color, rgb_adjust (hold-to-repeat)
Cover / Roller Shuttercover_open, cover_close, cover_stop, cover_set_pos
Power Monitoringreset_energy (Switch PM, PM1, EM, EM1)
Systemconnect, refresh, reboot
ⓘ The rgb_adjust action supports hold-to-repeat: holding the button continuously increments or decrements the selected colour channel (R/G/B/W or Brightness) until released. Useful for building colour-mixing panels with +/− buttons.

Command Integration Guide

This handler supports all Shelly device families. Gen1 uses HTTP polling; Gen2/Gen3 uses WebSocket RPC for real-time push feedback. Generation and model are auto-detected on connect.

Integration examples — assuming device name "SHELLY_LAMP"

Replace <fantago> with your Fantago IP and <port> with the HTTP port (default 3000).

Switch / Relay

ActionHTTP GETTCP / UDP
Turn on relay 0 /sendTo/SHELLY_LAMP?cmd=switch_on&id=0 SHELLY_LAMP:switch_on&id=0
Turn off relay 0 /sendTo/SHELLY_LAMP?cmd=switch_off&id=0 SHELLY_LAMP:switch_off&id=0
Toggle relay 1 /sendTo/SHELLY_LAMP?cmd=switch_toggle&id=1 SHELLY_LAMP:switch_toggle&id=1

Light / Dimmer

ActionHTTP GETTCP / UDP
Turn on light 0 /sendTo/SHELLY_LAMP?cmd=light_on&id=0 SHELLY_LAMP:light_on&id=0
Set brightness 75% /sendTo/SHELLY_LAMP?cmd=light_brightness&id=0&brightness=75 SHELLY_LAMP:light_brightness&id=0&brightness=75
Set color temp 3200 K /sendTo/SHELLY_LAMP?cmd=light_color_temp&id=0&temp=3200 SHELLY_LAMP:light_color_temp&id=0&temp=3200

RGB / LED Strip (RGBW2, Plus RGBW PM)

ActionHTTP GETTCP / UDP
Set color red at full brightness /sendTo/SHELLY_LAMP?cmd=rgb_set_color&id=0&red=255&green=0&blue=0&white=0&gain=100 SHELLY_LAMP:rgb_set_color&id=0&red=255&green=0&blue=0&white=0&gain=100
Increase red channel by 10 /sendTo/SHELLY_LAMP?cmd=rgb_adjust&id=0&channel=red&delta=10 SHELLY_LAMP:rgb_adjust&id=0&channel=red&delta=10
Decrease brightness by 5 /sendTo/SHELLY_LAMP?cmd=rgb_adjust&id=0&channel=brightness&delta=-5 SHELLY_LAMP:rgb_adjust&id=0&channel=brightness&delta=-5

Cover / Roller shutter

ActionHTTP GETTCP / UDP
Open cover 0 /sendTo/SHELLY_LAMP?cmd=cover_open&id=0 SHELLY_LAMP:cover_open&id=0
Go to position 40% /sendTo/SHELLY_LAMP?cmd=cover_set_pos&id=0&pos=40 SHELLY_LAMP:cover_set_pos&id=0&pos=40
Stop /sendTo/SHELLY_LAMP?cmd=cover_stop&id=0 SHELLY_LAMP:cover_stop&id=0

Power Monitoring & System

ActionHTTP GETTCP / UDP
Reset energy counter /sendTo/SHELLY_LAMP?cmd=reset_energy&id=0 SHELLY_LAMP:reset_energy&id=0
Force status refresh /sendTo/SHELLY_LAMP?cmd=refresh SHELLY_LAMP:refresh
Reboot device /sendTo/SHELLY_LAMP?cmd=reboot SHELLY_LAMP:reboot

Faders, rotaries and Stream Deck + dials

Pick a Position action on a panel fader or rotary, or an Adjust action on a Stream Deck + dial, and choose the light or cover: the builder fills in the position variable, the value text and the marks.

  • Brightness — dimmers, RGB, RGBW and CCT lights. 0 turns the light off, any level above turns it on; DEVICE_light_0_level_pos is 0 while the light is off.
  • Colour Temperature — CCT lights (Gen2/Gen3), 2700-6500 K: DEVICE_cct_0_ct / _ct_pos.
  • Colour Channel — red, green, blue or white of an RGB/RGBW light (0-255): DEVICE_rgbw_0_red / _red_pos. The light's on/off state is left as it is.
  • Cover / Roller — the position to go to; DEVICE_cover_0_target_pos is where the cover is going, DEVICE_cover_0_pos where it is.

The connection opens when Fantago starts. While a device does not answer, one warning is logged and the attempts go on quietly (every 5 s, then up to once a minute); a control moved meanwhile is refused with one warning.

Variables written to system panel (replace DEVICE with your device prefix)

VariableDescription
DEVICE_connectedConnection state (true/false)
DEVICE_genDetected generation (1, 2 or 3)
DEVICE_modelDevice model string
Switch / Relay (Shelly 1, 2.5, Plug S, Plus 1PM, Pro 4PM…)
DEVICE_switch_0_outputRelay state (true/false)
DEVICE_switch_0_apowerActive power in W
DEVICE_switch_0_voltageVoltage in V
DEVICE_switch_0_currentCurrent in A
DEVICE_switch_0_pfPower factor (Gen2)
DEVICE_switch_0_freqFrequency in Hz (Gen2)
DEVICE_switch_0_energyTotal energy in Wh
Light / Dimmer (Shelly Dimmer, Bulb, Duo…)
DEVICE_light_0_outputLight state (true/false)
DEVICE_light_0_brightnessBrightness 0–100
DEVICE_light_0_ctColor temperature in K (Gen2) or 0–100 (Gen1)
RGB / LED (Shelly RGBW2, Plus RGBW PM…)
DEVICE_rgb_0_outputRGB output state (true/false)
DEVICE_rgb_0_red / _green / _blueColor channels 0–255
DEVICE_rgb_0_brightnessMaster brightness 0–100
DEVICE_rgbw_0_whiteWhite channel 0–255 (RGBW devices only)
Cover / Roller (Shelly 2.5 in roller mode, Plus 2PM…)
DEVICE_cover_0_stateopen / closed / opening / closing / stopped
DEVICE_cover_0_posPosition 0–100 %
Power meters (Shelly PM Mini, Pro PM, Pro EM-50)
DEVICE_pm1_0_apowerActive power in W
DEVICE_pm1_0_voltage / _current / _pf / _freq / _appower / _energyFull PM data
3-phase energy meter (Shelly Pro 3EM)
DEVICE_em_0_a_apower / _b_apower / _c_apowerActive power per phase in W
DEVICE_em_0_a_voltage / _b_voltage / _c_voltageVoltage per phase in V
DEVICE_em_0_a_pf / _b_pf / _c_pfPower factor per phase
DEVICE_em_0_total_apowerTotal active power W (all 3 phases)
DEVICE_em_0_energy / _energy_returnedTotal energy / returned energy in Wh (solar)
Sensors
DEVICE_input_0_stateDigital input state (true/false)
DEVICE_temperature_0_tcTemperature in °C
DEVICE_humidity_0_rhHumidity in %

Note: Use channel index (0, 1, 2…) for multi-channel devices. The id parameter defaults to 0 if omitted.

Shelly Smart Home control — frequently asked questions

Does Fantago support Shelly Smart Home?

Yes. Fantago includes a ready-made Shelly Smart Home handler (version 1.1.1) that talks to the device over HTTP / WebSocket RPC, default port 80. It is bundled with every licence and with the 60-day free trial — there is no per-device fee.

What protocol does the Shelly Smart Home handler use?

HTTP / WebSocket RPC, default port 80. Fantago connects straight to the device over your production network, so no gateway, middleware or vendor software is needed in between.

Can I control Shelly Smart Home from a Stream Deck?

Yes. Every Shelly Smart Home action can be mapped to an Elgato Stream Deck key, to a button on a custom Fantago touch panel, to a timed schedule, or to a logic flow triggered by another device — including devices from a different manufacturer.

Can I modify the Shelly Smart Home handler?

Yes. The handler is a plain JavaScript file (shelly.js) that you can download from this page, edit and drop back into Fantago. You can also write your own handler from scratch — see the Developer Guide.

Control Shelly Smart Home from a single interface

Fantago drives Shelly Smart Home alongside 50+ other broadcast, lighting, audio and smart home devices — from custom touch panels, an Elgato Stream Deck, a schedule or a logic flow. One-time licence, no subscription, runs offline.

Try free for 60 days What Fantago Pro includes

← All 56 device handlers