# \[APP\] Shelly - Smart solutions for every home and office

**URL:** <https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765>\
**Category:** Apps\
**Tags:** app, official, homey, homey-pro, homey-cloud\
**Created:** [August 28, 2018, 8:54pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765 "2018-08-28T20:54:43Z")\
**Posts on this page:** 20\
**Page:** 79

<div class="post-metadata">

**Author:** ![Sinled](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sinled/32/1559_2.png) [@Sinled](https://community.homey.app/u/Sinled)\
**Post date:** [February 21, 2021, 9:51am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1580 "2021-02-21T09:51:02Z")

</div>

Updated homey to version 5 yesterday, and 8 out of 10 shellys stopped working,  
devices are working fine when accessed vie their web interface, but changing status from homey doesn’t work - EHOSTUNREACH, after that i’ve updated to v3 of app, and result was the same

what is interesting - status updates, such as temp or voltage - are working fine, only changing device state receives errors

any ideas what might be the problem or how this can be debugged?

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [February 21, 2021, 9:59am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1581 "2021-02-21T09:59:54Z")

</div>

Any news about supporting the Shelly Motion? I have it installed, but there is no easy way to use the lux-value in Homey. Motion webhook works like a charm!

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 21, 2021, 10:41am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1582 "2021-02-21T10:41:35Z")

</div>

> [@Sinled](#):
>
> any ideas what might be the problem or how this can be debugged?

Have you assigned static ip addresses for your Shelly’s in your router. Sounds like they have changed after being added. Make sure the ip address under device settings is correct.

> [@TKroon](#):
>
> Any news about supporting the Shelly Motion?

Supported already in version 3 of the app. Only auto discovery is not working but this is a firmware bug in the Shelly motion.

---

<div class="post-metadata">

**Author:** ![TKroon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tkroon/32/9504_2.png) [@TKroon](https://community.homey.app/u/TKroon)\
**Post date:** [February 21, 2021, 10:52am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1583 "2021-02-21T10:52:50Z")

</div>

Great, thanks. I will wait for v3!

---

<div class="post-metadata">

**Author:** ![Sinled](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sinled/32/1559_2.png) [@Sinled](https://community.homey.app/u/Sinled)\
**Post date:** [February 21, 2021, 10:53am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1584 "2021-02-21T10:53:33Z")

</div>

> [@Phuturist](#):
>
> Have you assigned static ip addresses for your Shelly’s in your router. Sounds like they have changed after being added. Make sure the ip address under device settings is correct.

Yes all addresses are static, the only change was homey version update

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 21, 2021, 6:05pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1585 "2021-02-21T18:05:29Z")

</div>

Try restarting the app and send me a crash report from the app settings page if the problem persists.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 23, 2021, 10:47pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1586 "2021-02-23T22:47:28Z")

</div>

> [@Eduardo\_Rodriguez](#):
>
> I have tried re-adding the device. Nothing appears. I have also tested the card in flows, it doesn’t work either.

Could you re-try the master branch on Github.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 23, 2021, 11:31pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1587 "2021-02-23T23:31:11Z")

</div>

> [@Phuturist](#):
>
> Could you re-try the master branch on Github.

Install the new version, re-add the shelly 1 with addon. Don’t work.

Yesterday update shellyforhass in my home assistant, the addon is already supported, is it possible that I can get some useful information?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 24, 2021, 8:04am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1588 "2021-02-24T08:04:05Z")

</div>

> [@Eduardo\_Rodriguez](#):
>
> is it possible that I can get some useful information?

Yes, please run the version from the debug branch on github and post the entire console log from app start-up and an update of the reed switch.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 24, 2021, 10:38am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1589 "2021-02-24T10:38:57Z")

</div>

> [@Phuturist](#):
>
> Yes, please run the version from the debug branch on github and post the entire console log from app start-up and an update of the reed switch.

I think this is you are looking for:

(node:9103) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see [Command-line API | Node.js v21.5.0 Documentation](https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode)). (rejection id: 1)  
(node:9103) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.  
2021-02-24 10:34:37 [log] [ManagerDrivers] [shelly1] [10] updating alarm\_generic.external through CoAp for shelly1-483FDA91906C  
(node:9103) UnhandledPromiseRejectionWarning: Error: invalid\_capability  
at Remote Process

Send you the full log in pm

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 24, 2021, 6:24pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1590 "2021-02-24T18:24:47Z")

</div>

> ## v3.0.15 - 2021-xx-xx
> 
> - Made a more generic trigger card called “Input state changed” with tokens for which input changed and the new input state for devices that support one or more SW input terminals and/or external inputs. Flows that currently trigger for devices with more than one SW terminal need to be updated due to this to this generic trigger card.
> - Added support for external switch for Shelly 1, Shelly 1PM and Shelly 1L
> - Small improvements and bug fixes

For more information on installing version 3.x see [[APP] Shelly - #1097 by Phuturist](https://community.homey.app/t/app-shelly/765/1097)

**This is most likely the release that will be published to all users in the stable channel if no more issues occur.**

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 25, 2021, 10:50am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1591 "2021-02-25T10:50:40Z")

</div>

I’m not getting to use the card “input state changed” to activate flows.

I see the alarm\_generic.external capability change from true to false, but I can’t use it to activate a relay or update the value of a virtual sensor. How would be the correct way to use this card?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 25, 2021, 1:28pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1592 "2021-02-25T13:28:56Z")

</div>

> [@Eduardo\_Rodriguez](#):
>
> How would be the correct way to use this card?

The card is available under the device. You can add it as trigger to a flow. The card contains two tokens, one for the input that triggers the card and one for the new state. You will have to use logic condition cards to filter on these tokens and perform the actions you want. Your use case would be something like:

IF: trigger card input state changed  
AND: token input = 'external switch 1"  
AND: token state = ‘true’  
THEN update virtual device to ON

---

<div class="post-metadata">

**Author:** ![Wil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wil/32/11520_2.png) [@Wil](https://community.homey.app/u/Wil)\
**Post date:** [February 25, 2021, 4:25pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1593 "2021-02-25T16:25:07Z")

</div>

Firstly, thank you so much for your work on this. The input state changed on my Shelly 1’s is exactly what I’ve been looking for so I can run them in detached mode.

My use case is with PIRs on the SW input and LED floodlights on the output. I’m aiming that any PIR motion (relay comes on for 3seconds then switches off) (switch input) will trigger a flow (camera snapshot). But in a separate flow, I check for darkness before switching on the associated LED flood (so it doesn’t activate the lights in the daytime).

I’ve checked the ‘input state’ of my shelly devices though and it does not change despite the Shelly app showing the blue ‘on’ for the button being activated. I’ve tried re-starting the app to no effect. (on - off with the button in homey works fine, but it appears the input state isn’t reading through). What have I missed?

thanks

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 25, 2021, 5:42pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1594 "2021-02-25T17:42:04Z")

</div>

> [@Wil](#):
>
> What have I missed?

Nothing, I see it still contains a bug. I’ll push a fix in a couple of minutes.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 25, 2021, 5:49pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1595 "2021-02-25T17:49:08Z")

</div>

> ## v3.0.16 - 2021-xx-xx
> 
> - Fix for the trigger card called “Input state changed”

For more information on installing version 3.x see [[APP] Shelly - #1097 by Phuturist](https://community.homey.app/t/app-shelly/765/1097)

**This is most likely the release that will be published to all users in the stable channel if no more issues occur.**

---

<div class="post-metadata">

**Author:** ![Wil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wil/32/11520_2.png) [@Wil](https://community.homey.app/u/Wil)\
**Post date:** [February 25, 2021, 7:37pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1596 "2021-02-25T19:37:06Z")

</div>

Wow, quick turnaround, thank you! Sadly this doesn’t seem to show the changed state when I look in the device page of the Shelly 1’s at the input state. I’ve installed and restarted 3.0.16 above. Should I be deleting and re-adding the devices as well?

While I’m begging help, my Shelly 3EM seems to have gone offline/ unreachable. I removed it and re-added (it was recognised ok and added successfully) but cannot be reached when attempting to click on the (3) devices that come up. Is this something I should add on github (whole new learning experience for me in taking part in bug reporting here).

Thanks again

---

<div class="post-metadata">

**Author:** ![Wil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wil/32/11520_2.png) [@Wil](https://community.homey.app/u/Wil)\
**Post date:** [February 25, 2021, 7:47pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1597 "2021-02-25T19:47:27Z")

</div>

I take it back, the Shelly 1’s are now permanently showing their input 1 state as Yes (don’t seem to reset when the input is removed?). I can hear the relay in the PIR clicking on and off, but the input state remains Yes at all times.

Can I check the usage for the input state in a flow is:  
If: Input state changed  
And: (Logic) State is exactly Yes  
And: (Logic) Input is exactly input 1  
Then: \<whatever action/ flow I choose\>

Thanks

---

<div class="post-metadata">

**Author:** ![TimoSoof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timosoof/32/93406_2.png) [@TimoSoof](https://community.homey.app/u/TimoSoof)\
**Post date:** [February 25, 2021, 8:09pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1598 "2021-02-25T20:09:49Z")

</div>

Hello, i think its the PIR.  
There must be some ballast to it put a light or a relais to the output of the pir.  
And use the contact of the relais to give power to sw on shelly 1

---

<div class="post-metadata">

**Author:** ![Wil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wil/32/11520_2.png) [@Wil](https://community.homey.app/u/Wil)\
**Post date:** [February 25, 2021, 8:19pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1599 "2021-02-25T20:19:37Z")

</div>

Interesting, I did have this issue with my first PIR still passing enough voltage to keep the PIR powered, even when ‘off’ which seemed to be a lack of output resistance on the Shelly.

My current PIRs work fine in the case that they switch the light directly (via the input SW of the Shelly, they directly switch the output), so I wasn’t expecting that detaching the two in software would prevent the relay in the PIR from operating properly. This could be a Shelly issue I guess that means they can’t be used with PIRs in my case ☹ I was hoping more for a bug in the code, but that’s just because it’s easier for someone else to solve my problems!!

[Previous page](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765.md?page=78)

[Next page](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765.md?page=80)
