shelly  

Developer: Karl's Plugins     Like this plugin? Show your appreciation!
Category: Digital/Analog I/O Modules
Github: Github Repo
License: MIT License
Assistance: Get help!   
Plugin ID: com.karlwachs.shelly
Latest release: v2026.1.2 released on Nov. 8, 2026
Release downloaded: 14 times
Requires: Indigo v2024.1.0 or higher
(Check the Releases tab below for older releases that may have different requirements)
  Download latest release

shellyDirect – Indigo plugin for Shelly devices

Controls and monitors Shelly Wi-Fi devices directly over your local network. No Shelly cloud, no external MQTT broker and no extra Python modules are needed.

What it does

  • Finds Shelly devices on your network and creates the matching Indigo devices, with one child device per extra channel, phase or sensor.
  • Reads their status: on/off, brightness, position, power, voltage, current, energy, temperature, humidity, battery, Wi-Fi signal, firmware and update status.
  • Switches and controls them from Indigo: on, off, toggle, dim, position covers, set colors and thermostat values.
  • Gets changes right away instead of only by polling:
    • Gen1: the device calls the plugin's built-in HTTP listener ("action URLs") whenever it switches or a button is pressed. It can also send its full status over MQTT.
    • Gen2/3/4: the plugin keeps a websocket open to each device. Alternatively, the device can send its updates to the plugin's built-in MQTT broker.
  • Polls as a backup: when a device reports changes itself, polling slows down to at most every 5 minutes.
  • Marks devices as expired when they stop answering.
  • Keeps SQL Logger working: every state is written with its declared type, and new devices start with typed values instead of blanks.

Supported devices

Gen1

Indigo device type Shelly models
shelly1, shelly1pm, shelly1l Shelly 1, 1PM, 1L
shellyswitch25 (+ child), shellyswitch25-roller Shelly 2.5 (relay and roller mode), Shelly 2, UNI
shelly4pro (+ child) Shelly 4Pro
shellyplug, shellyplug-s Plug, Plug E, Plug S, Plug US
shellyix3 (+ child) i3
shellybutton1 Button 1, Button 2
shellydimmer, shellydimmer2 Dimmer 1, Dimmer 2
shellyrgbw2, shellybulb, ShellyBulbDuo, ShellyVintage RGBW2, Bulb / Color Bulb, Duo, Vintage
shellyem (+ child), shellyem3 (+ child) EM, 3EM
shellyht (+ child) H&T
shellyflood, shellysmoke, shellygas Flood, Smoke, Gas
shellymotionsensor Motion, Motion 2
shellydw Door/Window 1 and 2
shellytrv (+ child) TRV thermostat
ext_temperature, ext_humidity sensors on the add-on of a Shelly 1 / 1PM

Gen2 / Gen3 / Gen4

The device type is chosen from the parts (components) the device reports, not from its model name. A new model made of the same parts is supported automatically.

Indigo device type Shelly models Shown in Indigo as
shellygen2switch (+ child) Plus 1 / 1PM / 2PM, Plus Plug S, 1 / 1PM / 2PM Gen3, Pro 1 / 2 / 3 / 4PM, Mini, Wall Display, Plus UNI relay, with power meter where available
shellygen2cover (+ child) Plus 2PM in cover mode, 2PM Gen3, Pro Dual Cover dimmer: brightness = position (0 closed … 100 open), on = open, off = close
shellygen2light (+ child) Plus Wall Dimmer, Dimmer Gen3, Pro Dimmer, Plus RGBW PM in light mode dimmer
shellygen2rgbw Plus RGBW PM in RGB / RGBW mode color dimmer
shellygen2input (+ child) Plus i4, i4 Gen3 sensor: on/off in switch mode; lastEvent (single_push, double_push, long_push …) in button mode
shellygen2pm Plus PM Mini, PM Mini Gen3 power meter
shellypro3em (+ child) Pro 3EM (incl. 3×120 A), 3EM-63 Gen3, EM Gen3, Pro EM-50 totals on the parent; phases A/B/C, or channels 1–3 in single-phase mode, on the children
shellyplusht (+ child) Plus H&T, H&T Gen3 temperature on the parent, humidity on the child
shellygen2alarm Plus Smoke, Flood Gen4 sensor: on = alarm, plus mute and battery
shellygen2presence Presence Gen4 (mmWave) sensor: on = someone in the main zone; numObjects, zones (all zones: id:present/absent(persons)), illumination dark / twilight / bright. Uses Shelly.GetComponents, because the zones are not in Shelly.GetStatus

Plus one device type that is not a Shelly:

Device type What it does
shellySumMeters Sum of meters: adds up power, current and energy states of up to 8 other devices each; see Sum of meters

Not supported: Bluetooth (BLU) devices, and the light sensor and voltmeter of the Wall Display and Plus UNI.

Setup

  1. Install: double-click shellyDirect.indigoPlugin. Indigo copies it to its plugin folder and enables it.
  2. Open the plugin config (Plugins → shellyDirect → Configure…). It has sections: Indigo server / plugin, Shelly devices (login, port, connection), Gen2/3/4 websocket, MQTT broker, other parameters, logging and debug. Set:
    • IP number of the Indigo server. The devices use it to reach the plugin, for both action URLs and MQTT.
    • IP port of the HTTP listener, default 7980. Use a free port above 5000; the Gen1 action URLs point here.
    • User ID / password / port of the Shelly devices: leave empty with port 80 if you did not set a login on the devices. Gen2+ devices always use the user admin with this password.
    • Shelly gen1 devices api version: choose 2021. All current Gen1 firmware needs it; with 2020 the action URLs are silently ignored.
    • Folder for new devices (optional).
    • Curl or Python requests: Python requests is the default; on the first start after the upgrade, installs set to curl are switched to it once (the Indigo log says so). Picking curl again afterwards is kept. Gen1 action URL pushes always go through /usr/bin/curl, because Python requests encodes the [ ] in those URLs and the Gen1 firmware then ignores them.
  3. Gen2/3/4 options:
    • Subscribe via websocket: on by default. You get instant updates from mains-powered Gen2+ devices with nothing to set up on the device. While a device is connected to the plugin's MQTT broker, its websocket is closed (wsSubscription = "off, using MQTT") so updates do not arrive twice; if MQTT drops, the websocket opens again.
    • Update at most every … seconds: limits how often fast changes, like power, are written to Indigo.
  4. Built-in MQTT broker (optional): turn it on and set its port (default 1883) and, if you want, a user and password. Use it for:
    • battery devices that sleep (Plus H&T, Plus Smoke, Flood), which can't keep a websocket open;
    • Gen1 devices, if you want their full status every 30 seconds without polling. The broker only receives messages, and only from Shelly devices; it does not pass anything on.
  5. Other options: temperature unit, number of digits shown, writing state changes to the Indigo log, SQL Logger handling, and debug areas.

Connecting devices

Find devices automatically

  • Plugins → shellyDirect → Start Shelly device discovery Process: enter a range, or only the first IP number for one device.
  • The plugin asks each IP number for its type, creates the device and its children, and pushes its action URLs and settings (Gen1). With the MQTT broker on, it also sets the device's MQTT to the plugin; see MQTT.
  • A log line created new device: name, type, ip# confirms each one.
  • Battery devices only answer while awake. Press their button during the scan, or let them connect over MQTT (below).
  • A device that changed its IP number is recognized by its MAC address and moved to the new IP.

Give the devices a fixed IP number

Use a DHCP reservation in your router, or a static IP in the device's own web page. The action URLs and polling use the IP number.

Gen1: action URLs (instant updates)

  • After creating a Gen1 device, the plugin writes the action URLs into it, e.g. out_on_url, out_off_url, btn_on_url → http://<indigo-ip>:7980/?….
  • To push them again: Plugins → shellyDirect → Set on device: action URLs + settings (gen1).
  • To check them: open http://<device-ip>/settings/actions; the urls must point to your Indigo IP and port.
  • If the device does not accept them, the log shows a warning. Check the "Shelly gen1 devices api version" setting first.

MQTT: point devices at the plugin

  • Plugins → shellyDirect → Set on device: MQTT server = plugin broker (gen1 + gen2): pick one device, all Gen2 devices, or all devices.
  • What it sets: MQTT on, the server set to the Indigo IP and broker port, and the broker user and password.
    • Gen2: also turns on "RPC status notifications".
    • Gen1: also sets a status message every 30 seconds.
  • Restart: the device restarts if needed. Devices that are already set up are left alone.
  • Sleeping devices are retried for 15 minutes; press their button to wake them.
  • Gen1: the Shelly cloud is switched off while MQTT is on. The Shelly app then only works on your home Wi-Fi. Gen2+ devices keep the cloud.
  • Not needed: "Enable RPC over MQTT". The plugin sends commands over HTTP.
  • New devices get it automatically: when the scan creates a device and the broker is on (and the Indigo IP is set), the plugin pushes the MQTT settings. Plugin config new devices from scan: set their MQTT to this broker picks which: gen2/3/4 only (default), gen1 + gen2/3/4, or off. Gen2+ devices get it right away; gen1 devices first get their action URLs, then MQTT 90 seconds later (and their Shelly cloud goes off). Sleeping devices are retried for 15 minutes.
  • Unknown devices: a device that connects to the broker but has no Indigo device yet is probed and created like a scan would.

Add a device by hand

Create a new Indigo device, choose type shellyDirect and the model, then enter the IP number and save. Child devices are created with the first status message.

Configuring devices

Every device has an edit dialog (double-click the device in Indigo):

  • IP number / MAC: change the MAC only when you swap the hardware.
  • Polling frequency: fixed, or automatic adaptive, the default. While the device reports changes itself over websocket, MQTT or action URLs, polling slows down.
  • Expiration: how long without contact before the device is marked expired. Battery devices default to 14 hours.
  • Device-specific settings (Gen1), such as button type, default state and LED. These are pushed to the device when you save.
  • PRINT button: writes all properties and states of the device, each with its value type, to the Indigo log. Useful for checking a device or a SQL Logger problem.

Device features that are not in the edit dialog (gas sensor, TRV, roller) are in the plugin menu; see Menu items.

Sum of meters

Adds up power, current (amps) and energy from other devices, for example all phases and channels of several energy meters.

  1. Create a new Indigo device, type shellyDirect, model Sum of meters.
  2. For power, current and energy, choose how many sources to add (0–8, default 1) and the unit of the sum. The device, state and unit menus appear for that many slots; a slot left without a device is skipped.
  3. For each source, choose a device, one of its states and the unit that state is in. Any Indigo device with numeric states works, including devices of other plugins. The state menu shows each state's current value. When you pick a device, a state with a matching name (power, current/amp, energy) is preselected.
  4. Choose which sum the device list shows, then save.

Units: power mW, W, kW; current mA, A; energy Ws (J), Wh, kWh, MWh. The defaults are the Shelly units: W, A and Wh. Each source value is converted to the unit of its sum. If a state name ends in a unit, such as energy_kWh, that unit is preselected.

States: power1…power8, current1…current8 and energy1…energy8 hold the source values, converted to the unit of the sum. powerSum, currentSum and energySum hold the totals. source_Power, source_Current and source_Energy list the source device ids in slot order, for example 1378652208, 51092918, and lastSumUpdate is the time of the last change. The plugin creates these states only for the kinds and slots in use: a sum of 3 power sources has power1…power3, powerSum, its statistics and source_Power, and no current or energy states. Change the sources and save, and the states follow.

For each sum (powerSum, currentSum, energySum) there are daily statistics, for example for power:

State Meaning
powerSumMinToday, powerSumMinTodayAt lowest value today and when
powerSumMaxToday, powerSumMaxTodayAt highest value today and when
powerSumAveToday time-weighted average since midnight: each value counts for as long as it lasted
…Yesterday, …YesterdayAt the same for yesterday, moved over at midnight

After a plugin restart, today's values continue from the states.

Each kind has a checkbox power sum: daily min / max / ave (and the same for current and energy) under its unit, on by default. Unticked, that kind gets no statistics states; the sum, the slot values and source_… stay.

Sum of sums: a sum device can be a source of another sum device, for example phases → floor → building → site. Picking a sum device as a source preselects its powerSum, currentSum or energySum and its unit. A change goes up through all levels within moments. Saving refuses a loop, such as A adding up B while B adds up A, and the message shows the loop. Don't add the same meter both directly and through a lower-level sum, or it is counted twice.

The sums update as soon as a source state changes. If nothing has changed for 5 minutes, the device rereads all sources and writes its states anyway, including lastSumUpdate. A source that is missing or not a number counts as 0, and the plugin logs a warning once.

Device states and actions

States all devices have

State Meaning
lastMessageFromDevice time of the last message or answer from the device
expired yes when the device has not answered within its expiration time
upFor time since the device last started
lastStatusChange, lastOnOffChange time of the last change, and of the last on/off change
action_from_device last event or action URL the device sent
MAC, created, WiFi_rssi, cloud, software_update_available device info (shown on the parent device)
model, firmware, wsSubscription, mqttConnection Gen2+ only: model, firmware version, websocket and MQTT connection status

States per kind of device

Kind States
Relays and plugs onOffState, power, energy, input, Temperature_internal, overtemperature (Gen1), overPower (Gen1); Gen2+ also voltage, current, powerFactor, frequency
Gen1 inputs (relays, i3, Button) input, input_short, input_long, input_short_double …, event_cnt, lastEvent
Energy meters power, voltage, current, energy, energyReturned, powerFactor; Gen1 also reactive; Pro 3EM also apparentPower, frequency, plus currentN on the parent
Dimmers and color lights onOffState, brightnessLevel, redLevel / greenLevel / blueLevel / whiteLevel (color models), power, energy
Covers / rollers brightnessLevel = position, onOffState (open), coverState (Gen2+) or state (Gen1), lastDirection, power
Gen2+ inputs (i4) onOffState and input (switch mode), lastEvent and lastEventTime (button mode), analogPercent
Temperature / humidity Temperature or Humidity, with min/max for today and yesterday, batteryVoltage
Alarms Flood / Smoke / Gas (Gen1): Flood / Smoke / Alarm, lastAlarm, previousAlarm; Gen2+ alarms: onOffState = alarm, alarmType, mute, batteryLevel
Presence (Gen4) onOffState = someone in the main zone, numObjects, zones, illumination
Motion, Door/Window motion / tamper / vibration triggers with their last times, lux, illumination, tilt, state (open/close), batteryVoltage
TRV Temperature, setpoint, valvePosition, valveState + lastValveChange (from the device's valve_open / valve_close actions), window_open, schedule, schedule_profile, boost_minutes, batteryVoltage

Energy units: Gen1 devices report energy in Wmin, Gen2+ devices in Wh.

Daily statistics of sensors

Devices with a temperature, humidity, light (lux), pressure or gas concentration state also get its daily statistics, for example for Temperature:

State Meaning
TemperatureMinToday, TemperatureMinTodayAt lowest value today and when
TemperatureMaxToday, TemperatureMaxTodayAt highest value today and when
TemperatureAveToday time-weighted average since midnight
…Yesterday, …YesterdayAt the same for yesterday
  • Average: each value counts for as long as it was valid, so a sensor that reports rarely is not under-weighted.
  • At midnight: today moves to yesterday. Today then starts with the last value, at "YYYY-MM-DD 00:00:00".
  • Updates: with every new value, and at least once an hour.
  • After a plugin restart: today's values continue from the states.
  • Turn off per measurement: each device has a checkbox per measurement in its edit dialog, for example temperature: daily min / max / ave. Unticked, the device does not get these states. The states are created by the plugin when the device starts, they are not fixed in the device definition.

Actions from Indigo

Device Turn on / off / toggle Brightness: set, brighten, dim Color Other
Relays and plugs yes – – –
Dimmers yes yes – –
Color lights, bulbs yes yes yes (Gen1 also white temperature) –
Covers (Gen2+) on = open, off = close set position – –
Shelly 2.5 roller on = open, off = close set position – stop, calibrate, move for x seconds (menu)
TRV – – – target temperature, schedule, boost … (menu Set on device: thermostat (TRV) values)
Gas – – – self test, mute / unmute (menu)

Sensors, energy meters, inputs and alarms are read-only. Every action is followed by an immediate status request, so Indigo shows the real result.

Plugins → shellyDirect:

Menu item What it does
Start Shelly device discovery Process scans one IP number ("to" empty) or a range and creates the devices it finds
Request Status from Shelly Device asks a device for its settings and status now
Set on device: MQTT server = plugin broker (gen1 + gen2) sets MQTT on the device to the built-in broker
Set on device: action URLs + settings (gen1) writes the action URLs and device settings to Gen1 devices again
Set on device: gas alarm (self test, mute) Shelly Gas: start self test, mute or un-mute the current alarm
Set on device: thermostat (TRV) values TRV: target temperature, schedule, boost …
Manage roller device (shelly-25 roller) Shelly 2.5 in roller mode: go to position, move for xx secs, stop, start calibration
Print emeter data to logfile energy meter data of a device
(Un) ignore IP numbers stop or allow messages and device creation for an IP number
Print Shelly dev info to logfile plugin-side info for one or all devices
Print help to logfile short help

Troubleshooting

  • A switch or button press shows up late (Gen1): the action URLs are missing. Check the API version setting, then run Set on device: action URLs + settings (gen1).
  • A Gen2+ device updates only every few minutes: check its wsSubscription state (websocket) or mqttConnection state. Battery devices need MQTT.
  • "Could not get time … no internet connection" in a Gen1 device's web page: the page asks Shelly's cloud for a timezone list, and the cloud now refuses that request. The device itself is fine.
  • SQL Logger errors for a device: reload the plugin, delete that device's device_history_<id> table, and let it be recreated.
  • Something else: turn on the matching debug area in the plugin config. The log is in …/Logs/com.karlwachs.shellyDirect/plugin.log.

Changelog

Changes per version are listed in Contents/changelist.txt, newest first.

Release details
Released on: Nov. 8, 2026
Requires: Indigo v2024.1.0+
Downloaded: 14 times 
Changes in this release

=================================================== 1. subscribe to messages sent from gen2 shelly devices: plugin opens a websocket to ws://ip/rpc and sends one rpc request, the device then pushes NotifyStatus / NotifyFullStatus / NotifyEvent on that channel. changes are merged into the last full status and update the indigo states (at most every x secs, config) reconnects automatically, ping keep alive, digest auth w user admin + password from config while subscribed http polling is only a backup (max every 5 minutes) config: "Subscribe via websocket" on/off, "update at most every" ; debug option "gen2 websocket" 2. prep for Shelly Pro 3EM (v2): new device types shellypro3em (totals) + 3 x shellypro3em-child triphase profile: children = phase A/B/C ; monophase profile: children = channel 1/2/3, parent = sum states: power, apparentPower, voltage, current, powerFactor, frequency, energy, energyReturned [Wh] .. gen2 polling uses rpc/Shelly.GetStatus and rpc/Shelly.GetDeviceInfo, digest auth add manually: create new shelly device, type Shelly-Pro-3EM, enter ip# and mac, save. children are created w first status 3. discovery (scan) finds gen2 devices: if /settings does not answer, /shelly is tried ("gen":2) supported gen2 types get created, others are logged as "not supported yet" known device at new ip# is found by mac (w or w/o ":") and its ip# is changed 4. built in mini MQTT broker for gen2 devices (miniMqttBroker.py, nothing to install, no external broker needed) config: on/off (default off), port (1883), optional user/password ; debug option "gen2 MQTT broker" on the shelly: MQTT enable, server = indigo-ip:port, "RPC status notifications over MQTT" on receives /events/rpc (NotifyStatus/NotifyEvent, same as websocket) and /status/ device found by ip# of the connection or by mac in the client id; unknown devices are probed and created new state mqttConnection; while connected http polling is only a backup (max every 5 minutes) 5. added Shelly Plus H&T (gen2, shellyplusht): temperature + min/max on parent, humidity + min/max on child, battery level / voltage, external power. the device sleeps most of the time, use the MQTT broker so it reports on wake up 6. gen2/gen3 energy meters: the shellypro3em type now covers Pro 3EM (120A and 400A), 3EM-63 Gen3, EM Gen3, Pro EM-50 number of children from the device: 3 phases (em:0) or one per channel (em1:n). Pro EM-50 contactor output in state "relay" 7. new gen2/gen3 relay type shellygen2switch (Plus 1PM, Plus Plug S, 1PM Gen3, Pro 4PM ..): on/off/toggle via rpc Switch.Set, power, voltage, current, pf, frequency, energy [Wh], internal temperature, input state. one child per additional switch (devices in cover mode are not supported yet) 8. gen2 device ids the plugin does not know are typed by the parts in their status (em/em1, switch, temperature+humidity) 9. gen1 Shelly 3EM fix: now 3 children of type shellyem3-child (was 2 of type shellyem-child, phase C was missing), power factor added existing 3EM devices: delete and re-create (scan) to get the 3rd phase 10. menu "Gen2: point device MQTT to the plugin broker": one or all gen2 devices. sets MQTT on, server = indigo ip:broker port, broker user/password, RPC status notifications on, restarts the device if needed. devices already set are not touched. sleeping devices are tried for 15 minutes (press button to wake up) 11. "created new device: name, type, ip#" is now logged as info (was debug only, so nothing showed in the log) 12. config push (action urls) to gen1 devices that the device does not accept is now logged as warning w hint to "Shelly devices api version" (was debug only) 13. MQTT for gen1 devices: the built in broker now also takes the gen1 topics (shellies//...) shellies//info (= full /status, every 30 secs) updates the states like a poll, relay/input on/off changes trigger a status poll while connected polling slows down to max every 5 minutes. device found by ip# or by the mac in the client id (gen1: last 6 of mac) menu renamed "Point device MQTT to the plugin broker (gen1 + gen2)": gen1 = settings?mqtt_enable=true&mqtt_server=.. + reboot NOTE: gen1 firmware turns the shelly cloud off while MQTT is on 14. lastOnOffChange added to the states the SQL logger ignores (config "disable loggin for specific dev-states"), date strings can clash w timestamp columns 15. every state value is converted to its type in Devices.xml before it is written (int 0 for a Float state --> 0.0, "" for a Boolean state --> False ..) the sql logger creates the columns of a new device from the first values, a wrong type there gave sql errors later 16. states overtemperature, overload, safety_switch, calibrating, positioning are now Boolean (were String, got true/false from the device) a new device started w "" in these, the sql logger made a text column and then failed to change it to boolean 17. new devices: right after creation all Boolean / Float / Number / Integer states are set to False / 0.0 / 0 instead of the "" indigo starts with so the first write the sql logger sees has the right type 18. all device types checked: state types in Devices.xml now match what is written overPower (shellyem, shellyem3, shelly1pm, shelly4pro + child) --> Boolean, schedule_profile (trv) --> Number, power / energy (shelly1, shelly1l, shelly1pm) Integer --> Float, motionTrigger (motion sensor http action) writes True/False not "on"/"off" meters: power / energy written as float, energy uiValue used "total" when only "energy" was sent 19. device edit: button "PRINT" writes all properties and states of the device w value types to the indigo log 20. fix: Devices.xml for the state types is read from the plugin folder (file is not set in indigo) 21. new device types for gen2 / gen3 / gen4, the type is picked from the parts the device reports (so new models w the same parts work too): shellygen2cover (+child) covers / rollers: Plus 2PM cover mode, Pro Dual Cover, 2PM Gen3 .. brightness = position 0 closed..100 open, on = open, off = close shellygen2light (+child) dimmers: Plus Wall Dimmer, Dimmer Gen3, Pro Dimmer, Plus RGBW PM in light mode (4 channels) shellygen2rgbw color lights: Plus RGBW PM in rgb / rgbw mode, set color levels shellygen2input (+child) input only: Plus i4, i4 Gen3. switch mode = on/off, button mode = lastEvent single_push/double_push/long_push .. shellygen2pm power meter only: Plus PM Mini, PM Mini Gen3 shellygen2alarm battery alarms: Plus Smoke, Flood Gen4. on = alarm, mute, battery actions: on / off / toggle / set brightness / brighten / dim (cover: open / close / go to position), rpc Light.Set, Cover.*, RGB(W).Set 22. gen1 models w the same api as an existing type are now created: Plug US, Plug E, Color Bulb, Motion 2, Shelly 2, UNI, Door/Window 2, Button 2 23. reload / stop: no more error tracebacks for StopThread, indigo ends the plugin threads that way. a log filter drops them, real errors still show 24. new device type "Sum of meters" (shellySumMeters): adds up power, current and energy of other devices in device edit: number of sources per kind (0-8), then for each source a device + one of its numeric states any indigo device works (shelly or other plugins), the state list shows the current values states power1..8, current1..8, energy1..8 (the source values), powerSum, currentSum, energySum, source_Power, source_Current, source_Energy (source dev ids in slot order), lastSumUpdate updates right when one of the source states changes (indigo device change subscription), missing source counts as 0 w warning unit menu for each source (power mW/W/kW, current mA/A, energy Ws/Wh/kWh/MWh) and one for each sum, defaults are the shelly units W, A, Wh source values are converted to the unit of the sum; picking a state named eg energy_kWh preselects kWh fix: "UI dynamic list function returned illegal ID string" in device edit, empty state menu entries now have id "0" number of sources defaults to 1 (was 0, which hid all device/state menus), slots without a device are skipped device menus are static now (no dynamic reload), the device scan is done once per dialog (cached 30 secs): menus open fast min / max (w date time) / average states for power, current, energy sums: SumMinToday(At), SumMaxToday(At), SumAveToday + same for Yesterday, rolled over at midnight. average is time weighted (each value counts for as long as it lasted) after a plugin restart today's values continue from the states sum device w/o update for 5 minutes rereads all sources and writes its states (incl. lastSumUpdate) sum of sums: a sum device can be the source of another sum device (any depth). picking a sum device preselects its Sum state and its sum unit. loops (A uses B, B uses A) are refused on save, the loop is shown in the message 25. TRV: plugin sets the valve_open / valve_close actions of the device (api version 2021, trv fw needs urls[0][url]= instead of urls[]=) -> new states valveState (open/closed), lastValveChange, action_from_device = valve_open / valve_close. a status poll follows right away (valvePosition) 26. TRV menu / action "set thermostat values": set target temperature and enable schedule were refused ("not in allowed options"), the "X" at the end of the option was not removed. fixed 27. TRV: not calibrated (device reports pos -1): valvePosition = -1 with ui "not calibrated", child level 0 with ui "not calibrated" (was 0%) 28. plugin menu: the items that write to the device now all start with "Set on device:" (MQTT server, action URLs + settings, gas alarm, thermostat) 29. plugin menu: "ignore" and "accept again" IP numbers combined into one item "(Un) ignore IP numbers", the dialog shows the current list 30. plugin menu: the 4 roller items (calibrate, stop, go to position, move for xx secs) combined into "Manage roller device", actions unchanged 31. plugin menu: discovery for one device and for an IP range combined into "Start Shelly device discovery Process" 32. sensorValue (shown state, eg door/window lux or tilt) is always written as a real number. fixes "device value type for state key sensorValue must be real" 33. door/window: action url close set the device to open (close_url sent onOffState=1), the next poll set it back -> flapping triggers. fixed, close_url = onOffState=0, open_url = onOffState=1 push the settings again (menu "Set on device: action URLs + settings") so the device gets the new urls. onOffState.ui = open / closed, open in daylight fills dayOpen (was a missing state "daylightOpen") 34. door/window: new display option "open / closed (on/off only)", default for new devices, no sensorValue then. lux / tilt still selectable. existing devices: edit + save to switch 35. "dictionary changed size during iteration" when a new device was created while the pollers were checked: all loops over the device list use a copy. the error log no longer prints the full device dict (it held all device settings) 36. sensors (temperature, humidity, lux, pressure, gas concentration): min / max with time and time weighted average for today and yesterday, new states MinTodayAt, MaxTodayAt, AveToday, MinYesterdayAt, MaxYesterdayAt, AveYesterday (MinToday .. MaxYesterday existed for temperature / humidity / gas). was: min / max only, reset in the hour after midnight. now same logic as the sum device, continues after a restart states are dynamic (getDeviceStateList), one device edit checkbox per measurement "_EnableMinMax" (default on), off = no states 37. sum device: states are created dynamically, only for the kinds (power / current / energy) and slots in use (was all 61 states) 38. sum device: checkbox per kind (power / current / energy) "daily min / max / ave", default on; unticked = no statistics states for that kind 39. new device type shellygen2presence: Shelly Presence Gen4 (mmWave). on = presence in main zone, numObjects, zones, illumination. polled and read over websocket with Shelly.GetComponents (zones are dynamic components, missing in Shelly.GetStatus) 40. gen2 discovery: if Shelly.GetStatus answers with an error ({code, message}, eg right after a reboot) the plugin tries Shelly.GetComponents instead of logging "not supported yet, components:['code', 'message']" 41. new devices from the scan: MQTT settings are pushed automatically when the built-in broker is on. plugin config "new devices from scan: set their MQTT to this broker": gen2/3/4 only (default) / gen1 + gen2/3/4 / off. gen1: 90 secs after the action url push, shelly cloud goes off while MQTT is on 42. plugin config: python requests is now the default (was curl). existing curl installs are switched once at the first start after the upgrade; choosing curl again afterwards is kept. requests calls now have a timeout (a device that did not answer could block its poller). gen1 action url pushes always use /usr/bin/curl: requests encodes [ ] and gen1 firmware then ignores urls[]= / urls[0][url]= 43. plugin config grouped in sections: indigo server / plugin, shelly devices, gen2/3/4 websocket, MQTT broker, other parameters, logging, debug 44. removed time tracking (cProfile, variable enableTimeTracking_shelly) from config and code 45. fixed errors in error paths: device edit of a parent with sensorNo logged an error, expired check / ip change / queue / validate error logs used undefined names; removed 2 unused functions 46. gen2/3/4: websocket is closed while the device is connected over MQTT (state wsSubscription = "off, using MQTT"), restarts when MQTT disconnects. no more double traffic. plugin config section headings in green

Release details
Released on: Nov. 4, 2026
Requires: Indigo v2024.1.0+
Downloaded: 15 times 
Changes in this release

now supports many new devices see readme

Release details
Released on: Dec. 20, 2023
Requires: Indigo v2022.1.0+
Downloaded: 113 times 
Changes in this release

added check if device is not properly defined / setup

Release details
Released on: Dec. 20, 2023
Requires: Indigo v2022.1.0+
Downloaded: 104 times 
Changes in this release

added check if device is not properly defined / setup

Release details
Released on: June 14, 2023
Requires: Indigo v2022.1.0+
Downloaded: 97 times 
Changes in this release

enabled manual add of shelly devices, discovery add through menu create new shelly device, select proper dev type enter ip# and mac number w ":" save

Release details
Released on: June 13, 2023
Requires: Indigo v2022.1.0+
Downloaded: 107 times 
Changes in this release

light bulb off not working properly, was introduced in v .52/53

Release details
Released on: June 13, 2023
Requires: Indigo v2022.1.0+
Downloaded: 102 times 
Changes in this release

bug fix for: ValueError: invalid literal for int() with base 10: 'on'

Release details
Released on: June 12, 2023
Requires: Indigo v2022.1.0+
Downloaded: 104 times 
Changes in this release

bug fix for: line 5045, in actionControlDimmerRelay page += "{}={}&".format(IndigoStateMapToShellyDev[colorAction ...

Release details
Released on: June 11, 2023
Requires: Indigo v2022.1.0+
Downloaded: 105 times 
Changes in this release

line 1585, in buttonPrintShellyDevInfoCALLBACK type: 'dict' object has no attribute 'replace'

Release details
Released on: June 7, 2023
Requires: Indigo v2022.1.0+
Downloaded: 109 times 
Changes in this release
  1. bug fix for: File "plugin.py", line 2405, in checkForExpiredDevices if time.time() - self.SHELLY[devId]["lastMessageFromDevice"] > self.SHELLY[devId]["expirationSeconds"]: TypeError: '>' not supported between instances of 'float' and 'str'
Release details
Released on: April 25, 2023
Requires: Indigo v2022.1.0+
Downloaded: 98 times 
Changes in this release

bug fix in error handling when no json gets returned from shelly device this is the error recovery of an error recovery situation. not very common.

Release details
Released on: March 19, 2023
Requires: Indigo v2022.1.0+
Downloaded: 112 times 
Changes in this release
  1. added several options for actions for Shelly TRV devices :

    set target temperature, disables valve position enable set temperature, disables valve position set valve position, disables target temperature enable accelerated heating set valve min in percent enable schedule select schedule set boost minutes enable extra force at close set display brightness set display flipped set child lock make device discoverable calibrate device reboot device update firmware

  2. added child device for TRV: samename-child is a dimemr device. with this you can now set the valve position to a fixed value (0-100)

  3. TRV child - dimmer devices are automatically cretaed when the TRV device gets created

Release details
Released on: Jan. 17, 2023
Requires: Indigo v2022.1.0+
Downloaded: 98 times 
Changes in this release
  1. added some debug statements for shelly 2.5 roller/relay
  2. some minor beautifications in menus and dev edit
Release details
Released on: May 14, 2022
Requires: Indigo v7.0.2 thru v2022.2
Downloaded: 110 times 
Changes in this release

added support for Thermostat Shelly-TRV support setting target temp, open close valve, set boost time (actions and menus) dev states : temp, target temp, valve position, battery level, calibrated etc