Interest in Next-gen Shelly Devices

Posted on
Sun May 01, 2022 9:05 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

No problem - I'll give it a whirl whenever you send out an update. Have a quiet Sunday evening ahead. :)

Posted on
Sun May 01, 2022 9:13 am
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Interest in Next-gen Shelly Devices

Colly wrote:
No problem - I'll give it a whirl whenever you send out an update. Have a quiet Sunday evening ahead. :)


The latest code on the 0.2.0 branch (https://github.com/AaronLionsheep/Shell ... /0.2.0.zip) has the missing code for the I4 added back.

You can confirm the device receives data correctly by performing a Status Request on the main I4 device. The states list should populate with some data.

Posted on
Sun May 01, 2022 9:55 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Making some progress..
The i4 has connected but not showing as online.
Getting the following in log after a button press.
Code: Select all
  Error                           device "i4_2" state key onOffState not defined (ignoring update request)

Posted on
Sun May 01, 2022 10:52 am
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Interest in Next-gen Shelly Devices

Colly wrote:
Making some progress..
The i4 has connected but not showing as online.
Getting the following in log after a button press.
Code: Select all
  Error                           device "i4_2" state key onOffState not defined (ignoring update request)


Try out the latest code on the 0.2.0 branch (https://github.com/AaronLionsheep/Shell ... tree/0.2.0). I explicitly set the device to support an onOff state. An input in "Button" mode also updates the device icon as an indicator. There will eventually be Plugin Events that can be used in triggers for btn_up, btn_down, single_push, double_push, long_push.

I don't think I have the online/offline indicator functional yet.

Posted on
Sun May 01, 2022 10:55 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

That error is with the latest version.

Posted on
Sun May 01, 2022 10:58 am
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Interest in Next-gen Shelly Devices

Colly wrote:
That error is with the latest version.


I just pushed some code to that branch a few minutes ago (I don't have that version packaged as a release yet). If you go to that link (https://github.com/AaronLionsheep/Shell ... tree/0.2.0), it will take you to the 0.2.0 branch where you can download the code as a zip and extract the plugin. Or here is the link to download the latest commits: https://github.com/AaronLionsheep/Shell ... /0.2.0.zip

Posted on
Sun May 01, 2022 11:15 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Unfortunately not much change.
Code: Select all
   Trigger                         Shelly NG
   Error                           device "i4_1" state key onOffState not defined (ignoring update request)

Posted on
Mon May 02, 2022 7:03 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Interest in Next-gen Shelly Devices

Colly wrote:
Unfortunately not much change.
Code: Select all
   Trigger                         Shelly NG
   Error                           device "i4_1" state key onOffState not defined (ignoring update request)


The latest pushes to the branch (https://github.com/AaronLionsheep/Shell ... /0.2.0.zip) explicitly set the onOff state in the device config.

What version of Indigo are you running? This is the 2nd state issue that you've run into where I can't replicate it on my machine.

Posted on
Tue May 03, 2022 3:58 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Thanks Aaron for all your efforts.
I was running 2021.1 and after latest plugin version update I still got the same errors.
I’ve now updated to 2021.2 and still seeing the same.
One minor difference I’m seeing is that the individual input (e.g. sw1) now updates in Indigo. Previously I had to send status request.

Posted on
Tue May 03, 2022 8:08 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

tazswe wrote:
Hi Aaron,

Hope that the progress with the new plugin is going by schedule.

Received the following today that can be tested.
Shelly Plus I4
Shelly Plus 2PM


Sent from my iPad with Tapatalk

@tazswe Did you have any luck trying out your devices?

Posted on
Tue May 03, 2022 3:00 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Interest in Next-gen Shelly Devices

Colly wrote:
Thanks Aaron for all your efforts.
I was running 2021.1 and after latest plugin version update I still got the same errors.
I’ve now updated to 2021.2 and still seeing the same.
One minor difference I’m seeing is that the individual input (e.g. sw1) now updates in Indigo. Previously I had to send status request.


Yes one of the changes I made was updating the the device icon on btn_down and btn_up events. These will be exposed as Indigo events for triggers along with single_push, double_push, and long_push. You can see my placeholder log messages for those extra button presses. I will keep looking into why the device gets created without support for the onOff state. Would you mind recreating the entire Shelly device (all 4 inputs and the I4 main device) in Indigo?

@Clive, have you run into any problems with any of your devices?

Posted on
Wed May 04, 2022 4:32 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

aaronlionsheep wrote:
Would you mind recreating the entire Shelly device (all 4 inputs and the I4 main device) in Indigo?

Success - the individual inputs are now being seen by Indigo :D

Posted on
Wed May 04, 2022 4:46 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Next step. What about triggering on the 3 different click options? Single, Double & Long? When I set up a trigger for ShellyMQTT Event I cannot select the i4 device.

Posted on
Wed May 04, 2022 6:05 am
CliveS offline
Posts: 771
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Interest in Next-gen Shelly Devices

aaronlionsheep wrote:
@Clive, have you run into any problems with any of your devices?


Sorry but we are decorating at present and I have been told to put my 'toys' away so unable to 'play' with the Next Gen Shelly's for a few weeks.

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Wed May 04, 2022 6:13 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Interest in Next-gen Shelly Devices

CliveS wrote:
aaronlionsheep wrote:
@Clive, have you run into any problems with any of your devices?


Sorry but we are decorating at present and I have been told to put my 'toys' away so unable to 'play' with the Next Gen Shelly's for a few weeks.

Should you not get your toys in the walls etc before decorating?? :lol:

Who is online

Users browsing this forum: No registered users and 1 guest