Interest in Next-gen Shelly Devices

Plugin to control second generation Shelly devices over the MQTT protocol.
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

No problem - I'll give it a whirl whenever you send out an update. Have a quiet Sunday evening ahead. :)
aaronlionsheep
Posts: 263
Joined: Sun Feb 24, 2019 7:09 pm

Re: Interest in Next-gen Shelly Devices

Post by aaronlionsheep »

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.
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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)
aaronlionsheep
Posts: 263
Joined: Sun Feb 24, 2019 7:09 pm

Re: Interest in Next-gen Shelly Devices

Post by aaronlionsheep »

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.
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

That error is with the latest version.
aaronlionsheep
Posts: 263
Joined: Sun Feb 24, 2019 7:09 pm

Re: Interest in Next-gen Shelly Devices

Post by aaronlionsheep »

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
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

Unfortunately not much change.

Code: Select all

   Trigger                         Shelly NG
   Error                           device "i4_1" state key onOffState not defined (ignoring update request)
aaronlionsheep
Posts: 263
Joined: Sun Feb 24, 2019 7:09 pm

Re: Interest in Next-gen Shelly Devices

Post by aaronlionsheep »

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.
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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.
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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?
aaronlionsheep
Posts: 263
Joined: Sun Feb 24, 2019 7:09 pm

Re: Interest in Next-gen Shelly Devices

Post by aaronlionsheep »

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?
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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.
CliveS
Posts: 864
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Interest in Next-gen Shelly Devices

Post by CliveS »

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 2024.2.1 : macOS Sequoia 15.6.1 : 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
Colly
Posts: 550
Joined: Sat Jan 16, 2016 10:19 am
Location: Ireland

Re: Interest in Next-gen Shelly Devices

Post by Colly »

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:
Post Reply

Return to “ShellyNGMQTT”