SHELLY plugin

Posted on
Wed Oct 04, 2023 7:10 am
Mirko offline
Posts: 81
Joined: Dec 04, 2014

Re: SHELLY plugin

Hi Karl,

I wonder if the Shelly Plus 2pm - roller shutter - will work in Indigo?

Thanks,

Mirko

Posted on
Wed Oct 04, 2023 11:04 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

My plugin ONLY support v1 Shelly’s. Not the plus version.


Sent from my iPhone using Tapatalk

Posted on
Wed Oct 04, 2023 12:21 pm
Mirko offline
Posts: 81
Joined: Dec 04, 2014

Re: SHELLY plugin

Hi Karl,

Thanks for the reply.
Are you planning to create the possibilities for Shelly Plus in the near future?

Posted on
Wed Oct 04, 2023 1:13 pm
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

I have many other projects right now.
Likely not this year


Sent from my iPhone using Tapatalk

Posted on
Fri Oct 06, 2023 2:24 am
Mirko offline
Posts: 81
Joined: Dec 04, 2014

Re: SHELLY plugin

Goodmorning Karl,
Today I got a message from Shelly by opening my Shelly app (see attachment).
Does this affect Indigo working with shelly or will it stay the same?

Kind regards,

Mirko
Attachments
IMG_0443.jpg
IMG_0443.jpg (387.96 KiB) Viewed 1962 times

Posted on
Fri Oct 06, 2023 5:58 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

Should not. The plugin is independent of the iPhone app


Sent from my iPhone using Tapatalk

Posted on
Tue Dec 19, 2023 6:52 pm
mpleeds offline
Posts: 58
Joined: Jul 02, 2012

Re: SHELLY plugin

Hello, I'm using ShellyDirect V7.20.55 on a new Mac Studio M2 Max Sonoma and recently started getting the following event log error every few minutes :

shellyDirect Error
Traceback (most recent call last):
File "plugin.py", line 2410, in checkForExpiredDevices
self.indiLOG.log(10, "setting dev:{} to expired; minutes since last contact:{:.0f}; expiration Setting:{:.0f}[Min]".format(dev.name, (time.time() - self.SHELLY[devId]["lastMessageFromDevice"])/60, self.SHELLY[devId]["expirationSeconds"]/60))
TypeError: unsupported operand type(s) for /: 'str' and 'int'


I disabled / reloaded the plugin, but error came back several hours later.

Suggestions?

Posted on
Wed Dec 20, 2023 5:54 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

it looks like a device is not properly setup
could you please try the new version 7.20.57., it will give you more info ie which device is bad

you could also do menu/print help device info, that will give you all info for all devices, But then you have to go through each device and must understand the structures..


Karl

Posted on
Fri Dec 22, 2023 5:21 pm
mpleeds offline
Posts: 58
Joined: Jul 02, 2012

Re: SHELLY plugin

Hi Karl, Thanks for the suggestion. I eliminated some Shelly device duplicates which were created during a recent migration to Shelly Direct from Shelly MQQT and that solved the error. New issue - I upgraded to 7.20.57 per your recommendation and now getting the following message. I attempted to downgrade back to 7.20.55 just in case there's a bug in 7.20.57, but now get the same message. I also stopped the server, deleted plugin and prefs, restarted and downloaded plugin and still getting error. Please advise.

Error (client) timeout waiting for plugin response from com.karlwachs.shellyDirect for request UiGetValues1
Error (client) timeout waiting for plugin response from com.karlwachs.shellyDirect for request CallPluginFunc
Error (client) runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error The pluginname is not correct, please reinstall or rename
shellyDirect Error It should be /Libray/....../Plugins/shellyDirect.indigPlugin
shellyDirect Error It is: /Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/shellyDirect 2.indigoPlugin
shellyDirect Error please check your download folder, delete old *.indigoPlugin files or this will happen again during next update
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ------- the plugin has stopped, waiting for you to change the name and restart it ---------------------------
shellyDirect Error ------- the plugin has stopped, waiting for you to change the name and restart it ---------------------------
shellyDirect Error ------- the plugin has stopped, waiting for you to change the name and restart it ---------------------------
shellyDirect Error ------- the plugin has stopped, waiting for you to change the name and restart it ---------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ---------------------------------------------------------------------------------------------------------------
shellyDirect Error ----------------------------------------------------------------------------

Posted on
Fri Dec 22, 2023 5:26 pm
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

As it states the plugin name is wrong

It has a .2 in it that happens when you download the plugin and there is already that file it creates a new one with a .2

Now the name of the plugin drives several things. And if the name is wrong all hell breaks lose.

So
1. disable the plugin
2. go to the disabled plugin folder
3. remove the „ .2“ from the name. Including the space
4. restart the plugin


Sent from my iPhone using Tapatalk

Posted on
Sat Dec 23, 2023 8:11 am
mpleeds offline
Posts: 58
Joined: Jul 02, 2012

Re: SHELLY plugin

Got it, followed your instructions and latest version running smoothly. Many thanks!

Posted on
Tue Dec 26, 2023 9:27 am
mpleeds offline
Posts: 58
Joined: Jul 02, 2012

Re: SHELLY plugin

As I continue to migrate existing Shelly (SHSW-1) devices from MQTT to Shelly plugin, another issue has emerged - most devices are not sending input status changes, and of the few that are, they're only do so intermittently. As a result, triggers associated with these devices which are based on input status changes are not functioning. The only status updates that are coming into the event log are "received WiFi_rssi to "x" (see attached screenshot). I have tried several combinations of IP / Ports with in the plugin config with no luck.

I have tested each device and confirmed that power coming into the "switch" terminal on Shelly 1 is working correctly, and each device is set up consistently within the Shelly device url / Indigo device settings. Further, when "Send Status Request" is pressed, each device always updates the correct on/off input state,

Any help in getting the input status updates working reliably would be appreciated.
Attachments
Screenshot 2023-12-26 at 7.08.47 AM.png
Screenshot 2023-12-26 at 7.08.47 AM.png (136.47 KiB) Viewed 1233 times

Posted on
Tue Dec 26, 2023 3:32 pm
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

edit device, then set polling frequency to 5 secs, see what will happen.

also check state "event_cnt" that gets incremented with each button press

if on/off does not work, you could trigger on event_cnt.

Karl

Posted on
Wed Dec 27, 2023 1:50 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

also check if:
Screenshot 2023-12-27 at 08.45.04.png
Screenshot 2023-12-27 at 08.45.04.png (251.21 KiB) Viewed 1120 times
(naturally with your indigo servers IP number)is set

that will trigger a notification by the switch to the plugin.
the plugin otherwise needs to poll the switch frequently. (thats the frequency parameter in device edit)

with the Url action set you should get in the plugin.log file when http listener debug is switched on:
Code: Select all
2023-12-27 08:47:58 RequestHandler  do_GET ..  ip('192.168.1.109', 57042) , path:/?input=on
2023-12-27 08:47:58 workOnActionMessage queue page item present items:{'ipNumber': '192.168.1.109', 'page': 'httpAction', 'data': {'path': '/?input=on'}}
2023-12-27 08:47:58 doHTTPactionData 192.168.1.109, id:634256034, devType:shelly1,  data: /?input=on
2023-12-27 08:47:58 doHTTPactionData  .. len(devs):1, devNos:[], children:{}
2023-12-27 08:47:58 doHTTPactionData  ..  data after: input=on<
2023-12-27 08:47:58 doHTTPactionData 192.168.1.109  devType:shelly1  TRIGGERS:[['input', 'on', True]]
2023-12-27 08:47:58 doHTTPactionData   trigger:['input', 'on', True]
2023-12-27 08:47:58 RequestHandler  do_GET ..  ip('192.168.1.109', 57043) , path:/?input=off
2023-12-27 08:47:58 workOnActionMessage queue page item present items:{'ipNumber': '192.168.1.109', 'page': 'httpAction', 'data': {'path': '/?input=off'}}
2023-12-27 08:47:58 doHTTPactionData 192.168.1.109, id:634256034, devType:shelly1,  data: /?input=off
2023-12-27 08:47:58 doHTTPactionData  .. len(devs):1, devNos:[], children:{}
2023-12-27 08:47:58 doHTTPactionData  ..  data after: input=off<
2023-12-27 08:47:58 doHTTPactionData 192.168.1.109  devType:shelly1  TRIGGERS:[['input', 'off', True]]
2023-12-27 08:47:58 doHTTPactionData   trigger:['input', 'off', True]


Karl

Posted on
Wed Dec 27, 2023 5:31 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

Re: SHELLY plugin

I just tried mine.

set the URL action string on the device (the plugin normally sets that automatically, may be do a menu /push setting ..)

then
trigger on dev state "input" on , off or any change

Karl

Who is online

Users browsing this forum: No registered users and 1 guest