[APP][Pro&Cloud] Shelly

Continuing the discussion from [APP] Shelly App:

Hello. Will it ever be possible to read the relay status? Shelly 1

This is and always has been possible. What exactly are you missing?

(I did receive a report by a user that was also missing the onoff capability, not sure how that can happen but re-pairing his Shelly 1 fixed it.)

v1.17.0 - 2020-02-27

  • BREAKING CHANGES SHELLY EM: the Shelly EM driver has been refactored to avoid double polling. This breaks the current support for these devices and requires you to re-pair your Shelly EM. Sorry for the inconvenience.
  • Also support for the new Shelly 3EM has been added with the release.
1 Like

Is there any way to to trigger the dimming to fade to the new level over X seconds instead of an instant jump?

No, the Shellies dont support this feature. You can request it as Allterco Robotics to have it added.

Could someone post the output of http://yourshellyip/status of a Shelly 2.5 Relay device?

{ā€œwifi_staā€:{ā€œconnectedā€:true,ā€œssidā€:ā€œmorepowerā€,ā€œipā€:ā€œ192.168.2.205ā€,ā€œrssiā€:-54},ā€œcloudā€:{ā€œenabledā€:true,ā€œconnectedā€:true},ā€œmqttā€:{ā€œconnectedā€:false},ā€œtimeā€:ā€œ10:30ā€,ā€œserialā€:15970,ā€œhas_updateā€:false,ā€œmacā€:ā€œDC4F2276D579ā€,ā€œrelaysā€:[{ā€œisonā€:true,ā€œhas_timerā€:false,ā€œoverpowerā€:false,ā€œovertemperatureā€:false,ā€œis_validā€:true},{ā€œisonā€:false,ā€œhas_timerā€:false,ā€œoverpowerā€:false,ā€œovertemperatureā€:false,ā€œis_validā€:true}],ā€œmetersā€:[{ā€œpowerā€:20.48,ā€œis_validā€:true,ā€œtimestampā€:1582972236,ā€œcountersā€:[20.440, 20.432, 20.427],ā€œtotalā€:27883},{ā€œpowerā€:0.00,ā€œis_validā€:true,ā€œtimestampā€:1582972236,ā€œcountersā€:[0.000, 0.000, 0.000],ā€œtotalā€:0}],ā€œinputsā€:[{ā€œinputā€:1},{ā€œinputā€:0}],ā€œtemperatureā€:63.76,ā€œovertemperatureā€:false,ā€œtmpā€:{ā€œtCā€:63.76,ā€œtFā€:146.77, ā€œis_validā€:ā€œtrueā€},ā€œupdateā€:{ā€œstatusā€:ā€œidleā€,ā€œhas_updateā€:false,ā€œnew_versionā€:ā€œ20200206-083126/v1.5.10@e6a4205eā€,ā€œold_versionā€:ā€œ20200206-083126/v1.5.10@e6a4205eā€},ā€œram_totalā€:49520,ā€œram_freeā€:34348,ā€œfs_sizeā€:233681,ā€œfs_freeā€:153863,ā€œvoltageā€:241.19,ā€œuptimeā€:495449}

1 Like

And a second one:

{ā€œwifi_staā€:{ā€œconnectedā€:true,ā€œssidā€:ā€œmorepowerā€,ā€œipā€:ā€œ192.168.2.209ā€,ā€œrssiā€:-58},ā€œcloudā€:{ā€œenabledā€:true,ā€œconnectedā€:true},ā€œmqttā€:{ā€œconnectedā€:false},ā€œtimeā€:ā€œ10:38ā€,ā€œserialā€:16400,ā€œhas_updateā€:false,ā€œmacā€:ā€œ98F4ABF2CB0Eā€,ā€œrelaysā€:[{ā€œisonā€:true,ā€œhas_timerā€:false,ā€œoverpowerā€:false,ā€œovertemperatureā€:false,ā€œis_validā€:true},{ā€œisonā€:false,ā€œhas_timerā€:false,ā€œoverpowerā€:false,ā€œovertemperatureā€:false,ā€œis_validā€:true}],ā€œmetersā€:[{ā€œpowerā€:38.26,ā€œis_validā€:true,ā€œtimestampā€:1582972687,ā€œcountersā€:[38.237, 38.267, 38.514],ā€œtotalā€:69297},{ā€œpowerā€:0.00,ā€œis_validā€:true,ā€œtimestampā€:1582972687,ā€œcountersā€:[0.000, 0.000, 0.000],ā€œtotalā€:0}],ā€œinputsā€:[{ā€œinputā€:1},{ā€œinputā€:0}],ā€œtemperatureā€:73.30,ā€œovertemperatureā€:false,ā€œtmpā€:{ā€œtCā€:73.30,ā€œtFā€:163.93, ā€œis_validā€:ā€œtrueā€},ā€œupdateā€:{ā€œstatusā€:ā€œidleā€,ā€œhas_updateā€:false,ā€œnew_versionā€:ā€œ20200206-083126/v1.5.10@e6a4205eā€,ā€œold_versionā€:ā€œ20200206-083126/v1.5.10@e6a4205eā€},ā€œram_totalā€:49520,ā€œram_freeā€:34208,ā€œfs_sizeā€:233681,ā€œfs_freeā€:153863,ā€œvoltageā€:242.04,ā€œuptimeā€:495900}

Hello,

first of all thanks for the great working making shelly available for Homey.

Iā€™ve been replacing my fibaro dimmers with shelly dimmers. There just one thing iā€™m missing. In Homey thereā€™s only a trigger for 1 button. While there is input for 2 buttons. Would it be possible to integrate the trigger for the second button?

In the status you can also see both input for both buttons.

What device?

Shelly Dimmer
{ā€œwifi_staā€:{ā€œconnectedā€:true,ā€œssidā€:"",ā€œipā€:ā€œ10.0.1.105ā€,ā€œrssiā€:-55},ā€œcloudā€:{ā€œenabledā€:true,ā€œconnectedā€:true},ā€œmqttā€:{ā€œconnectedā€:false},ā€œtimeā€:ā€œ12:34ā€,ā€œserialā€:380,ā€œhas_updateā€:false,ā€œmacā€:ā€œ98F4ABD0E316ā€,ā€œlightsā€:[{ā€œisonā€:false,ā€œmodeā€:ā€œwhiteā€,ā€œbrightnessā€:16}],ā€œmetersā€:[{ā€œpowerā€:0.00, ā€œis_validā€:true, ā€œtimestampā€:1582979684,ā€œcountersā€:[0.000, 0.000, 0.000],ā€œtotalā€:121}],ā€œinputsā€:[{ā€œinputā€:1},{ā€œinputā€:1}],ā€œtmpā€:{ā€œtCā€:46.32,ā€œtFā€:115.37, ā€œis_validā€:ā€œtrueā€},ā€œcalib_progressā€:100,ā€œovertemperatureā€:false,ā€œloaderrorā€:false,ā€œoverloadā€:false,ā€œupdateā€:{ā€œstatusā€:ā€œidleā€,ā€œhas_updateā€:false,ā€œnew_versionā€:ā€œ20200206-083625/v1.5.10@e6a4205eā€,ā€œold_versionā€:ā€œ20200206-083625/v1.5.10@e6a4205eā€},ā€œram_totalā€:48304,ā€œram_freeā€:36516,ā€œfs_sizeā€:233681,ā€œfs_freeā€:133532,ā€œuptimeā€:7740}

According to your output there is only one switch. What makes you think there should be two?

There are 2 inputs for 2 physical buttons.
the first ā€˜inputā€™ being the left button en the send is the right button.

Ok weird, there is nothing in the API documentation about this and looking at your output there is no way to control this button. So I guess the answer is no way this moment. Perhaps Allterco Robotics will make this available in a future firmware.

as you look at the status iā€™ve uploaded from the dimmer is says ā€œinputsā€:[{ā€œinputā€:1},{ā€œinputā€:1}.
this change to ā€œinputsā€:[{ā€œinputā€:0},{ā€œinputā€:1} when i switch only the left button. and when is also switch the right button down it says: ā€œinputsā€:[{ā€œinputā€:0},{ā€œinputā€:0}

donā€™t get me wrong, iā€™m not an expert on this but it makes me thinking you can read out the status from both the left and the right input switch. So Homey should be able to read this too and make a trigger for both switches.

Does either of these inputs change when you use the switch on/off action card for the dimmer in a flow?

Hey!

Thanks a bunch for adding support for 3EM. Iā€™m not able to get it working though. What might I be missing?
I created a diagnostics report for the app, ID: c2ace557-85ea-465a-89b3-a3f44247bf2c

Adding the device and it finds it. It adds three devices called Shelly 3EM 1-3. So far so good.
All of them have a red exclamation mark though and no info when clicking in on them. Just says device unavailable.
IP is correct under the advanced settings and Iā€™m not using username/passā€¦

Did you restart the app already? I noticed something in the code that might cause this directly after pairing and someone on GitHub confirmed that restarting the app resolved the issue. Iā€™ll fix that in the next release.

The diagnostic report contains nothing since this is not a crash. You could try running the app from the command line to see if that gives more information.

Tried restarting the app and also the entire homey. Running 4.0.0 if that can make any difference.
Have also tried rebooting the 3EM itself.
Have tried removing and re-adding multiple times as well. So Iā€™m out of ideas :confused:

Will try to figure out how to run from command line. Never been down there before :slight_smile:

Tried adding the device again now and then rebooting the app. Works now!
Thanks, this is great!