# Shelly 1 Short and Long Buttons actions

**URL:** <https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352>\
**Category:** Questions & Help\
**Tags:** app, flow\
**Created:** [May 24, 2020, 6:38pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352 "2020-05-24T18:38:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xavi2503](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xavi2503/32/941_2.png) [@Xavi2503](https://community.homey.app/u/Xavi2503)\
**Post date:** [May 24, 2020, 6:38pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/1 "2020-05-24T18:38:44Z")

</div>

Hi all 🙂

Well we are back again 😛 in addition to previous topic i opened

> [@Using a Fibaro or Shelly switch to turn on/off Alarm](https://community.homey.app/t/using-a-fibaro-or-shelly-switch-to-turn-on-off-alarm/29755):
>
> Hi All, So I’m fairly new into the wonderful world of all the Homey possibilities but i have a question about something that is probably very simple but hope that somebody can help me. I have now bought some test add-on to set up a small alarm system at home. I have read about the Heimdall app that offers me exactly what I am looking for. For example, heimdall offers the possibility that if I press a button 3 times that the alarm is on or off. I want to switch the alarm system on and off by u…

So with the great advise by @Fire69 i bought a Busch & Jaeger Puls switch along with a Shelly 1 Wifi switch to active in my case my alarm flow within homey.

As i am still in testing phase i installed the puls switch and wifi switch within the wallsocket and it reacts…:S but not like i wouldt like to hahaha. So the wifi switch response once i press the pulse button but as soon as i release it it turns off.

So i setup a test by connecting a bulb to the installation just to see if it stays on once i push the button, or if it goes off assuming the logic that if this will work i can aply it within homey to actived flows. Within the app i checked the actions app and see the options for long and short press what would be ideal to for my setup using long action for “on” and short for “off”.

However unfortunally i spend a whole day trying and searching but unfortunally without any results.

Is there somebody having the same problem or maybe can explain me what i am doing incorrect?

Thanks in advanced

---

<div class="post-metadata">

**Author:** ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)\
**Post date:** [May 24, 2020, 6:47pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/2 "2020-05-24T18:47:49Z")

</div>

Hey 🙂

I hope you still think I gave you great advice 😛

Seeing the problem, I would suspect that your Shelly is configured to think that a toggle switch is connected instead of a momentary switch.

I don’t know the configuration of the Shelly’s, but in this manual ([https://shelly.cloud/wp-content/uploads/2019/10/Shelly1-UserGuide-EN-v04.pdf](https://shelly.cloud/wp-content/uploads/2019/10/Shelly1-UserGuide-EN-v04.pdf)) you can see that you can change the type of switch.

---

<div class="post-metadata">

**Author:** ![Xavi2503](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xavi2503/32/941_2.png) [@Xavi2503](https://community.homey.app/u/Xavi2503)\
**Post date:** [May 24, 2020, 7:07pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/3 "2020-05-24T19:07:18Z")

</div>

Hi @Fire69

Of course every step is one right 😉

Yeah read it several times but can’t find it that quickly.  
These are the options that I got within the app.

I think it’s something Power on default mode

 ![20200524_205141](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/753959b7895ab0d620ac0e7715b799e11231597c.jpeg)  
 ![20200524_205227](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/6/469cd2d3e5ee0049be38d54f25f38a84beff6c12.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 24, 2020, 7:09pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/4 "2020-05-24T19:09:06Z")

</div>

I think it’s the “Momentary” button type that you need to set.

---

<div class="post-metadata">

**Author:** ![Xavi2503](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xavi2503/32/941_2.png) [@Xavi2503](https://community.homey.app/u/Xavi2503)\
**Post date:** [May 24, 2020, 7:23pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/5 "2020-05-24T19:23:24Z")

</div>

And the power on default mode ? Needs to be set as on ? Or as switch?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 24, 2020, 7:26pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/6 "2020-05-24T19:26:12Z")

</div>

“Power on default mode” is unrelated to how the Shelly responds to buttons, it’s related to what Shelly should do when it gets powered up (however, Shelly should always be powered up, so the setting only applies to situations where, for instance, there was a power outage).

---

<div class="post-metadata">

**Author:** ![Xavi2503](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xavi2503/32/941_2.png) [@Xavi2503](https://community.homey.app/u/Xavi2503)\
**Post date:** [May 24, 2020, 7:36pm UTC](https://community.homey.app/t/shelly-1-short-and-long-buttons-actions/30352/7 "2020-05-24T19:36:37Z")

</div>

I tried and indeed it did the trick as soon as I push the button it stays on and if I push it again it turns of so that’s great. Now I want to see how I can active the long and short action :s
