This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Solved

Multiple triggers in a flow

LurendrejerLurendrejer Member
edited September 2017 in Questions & Help
Hi.

I'm looking for an app that has an action card for 'any device'. 

Does such an app exist or could somebody find time to make such an app if at all possible?

So that if any devices changes to on or off some action would be activated.
Tagged:

Comments

  • lubbertkramerlubbertkramer Member
    edited July 2017
    That is coming in 1.5 :) 

    From top to bottem:
    A alarm went on (then you can select wich alarm for example motion, co2 or battery)
    A alarm went off (then you can select wich alarm for example motion, co2 or battery)
    A value of a sensor changed  (then you can select wich alarm for example motion,lux or battery)
    A device didn't respond for x minutes




  • Sounds great.
    Does it have 'any switch' was turned on functionality or only what you mentioned?
  • Sounds great.
    Does it have 'any switch' was turned on functionality or only what you mentioned?
    What do you mean with "any switch"? 
  • Light switch, bulb, etc.
    All my light z-wave light switches are represented by an on/off switch in homey.


  • Light switch, bulb, etc.
    All my light z-wave light switches are represented by an on/off switch in homey.


    Not for now but that could be a feature request to expand the functionality 
  • Bugger, thank you for the info :)
  • LurendrejerLurendrejer Member
    edited September 2017
    Hi.

    Is there a underlying reason why we can't have multiple triggers per flow? I have quite few flows that does the same thing - just with different triggers.

    Modbreak:
    Merged with existing topic

  • yes, that doesn't work in Homey.
    https://github.com/athombv/homey/issues/1628
    There's support for multiple triggers (any lights on, any battery empty etc) in 1.5 as soon as it hits stable.
  • Hmm.. I'm doing what i can to minimize the flows with triggers, sub-flows, etc.
    But when you have three to four buttons to turn on the same lights, things get stupid quite fast :smile:

  • lubbertkramerlubbertkramer Member
    edited August 2017
    Hmm.. I'm doing what i can to minimize the flows with triggers, sub-flows, etc.
    But when you have three to four buttons to turn on the same lights, things get stupid quite fast :smile:

    In 1.5 you can have multiple triggers by capabilities (so if one doorsensor triggers turn on the lights or your alarm or what you want) that in combination with the OR (also 1.5) and Else can minimalize your flows and with the app device groups in the app store you also can group your devices (also from 1.5 because of SDK 2 use) :) 
  • BumperBumper Member
    edited September 2017
    Hi Guys,

    after upgrading to 1.5, I'm trying to combine some of the flows I had made that act upon door sensors opening. Currently I have 3 flows (each triggered by a different sensor) that generate an action. 

    I thought that in the current version I was able to trigger an action if sensor a, b or c activates, but have problems finding how that should be configured. any tips?

    thanks,
    Patrick
  • lubbertkramerlubbertkramer Member
    edited September 2017
    Bumper said:
    Hi Guys,

    after upgrading to 1.5, I'm trying to combine some of the flows I had made that act upon door sensors opening. Currently I have 3 flows (each triggered by a different sensor) that generate an action. 

    I thought that in the current version I was able to trigger an action if sensor a, b or c activates, but have problems finding how that should be configured. any tips?

    thanks,
    Patrick
    From the menu drag devices/apparaten to the IF and you can flip through the multiple trigger cards. 

    Modbreak:
    Merged above question with existing topic

  • Sorry but this is not what i ment in this thred.  https://forum.athom.com/discussion/3884/multi-trigger-when-support-in-flows#latest

    I would like to have multiple triggers in one thread, any triggers.

    Like
    When...
    * A device triggerd
      or
    * The time is 10:00
     or
    * A sun event is triggered.

    Or is there a workaround you can share with med, i don't want to have three flows for morning, day, evening etc.
    ? ;)




  • There have been multiple requests but Athom chose not to complicate things doing this:
    https://github.com/athombv/homey/issues/444
    https://github.com/athombv/homey/issues/1628
  • From the menu drag devices/apparaten to the IF and you can flip through the multiple trigger cards. 

    Modbreak:
    Merged above question with existing topic

    Why doesn't this work with me? I select 2 (the same) devices and I get refused.

    Shouldn't this work..?
  • casedacaseda Member
    edited October 2017
    You can't put 2 trigger cards in the if column, even when they are the same.

    There is now a trigger (in the "devices" card) card which has a card called "alarm triggered", and you then can select a zone and alarm type
  • Hi Guys,

    must be me, but how can I select the zone in the example used above? I do have a trigger not 'alarm triggered' and selected 'contact alarm'  as type, but not sure how I need to tell it just to trigger for a single zone. so for now I have an 'AND' check not all alarms are off where I can set the zone, but it seems like a weird way to set it up.

    thanks,
    Pat
  • caseda said:
    You can't put 2 trigger cards in the if column, even when they are the same.

    There is now a trigger (in the "devices" card) card which has a card called "alarm triggered", and you then can select a zone and alarm type
    Although communicated with updates, I simply didn't get the clue. Besides all the devices you have installed, there is another device added (2nd from the top) which is to be read as deviceSSS.... A specific group of devices!
    Now it works :)

  • Hi,
    I'm fairly new to Homey so I might be overlooking something.
    If want to be able to start a flow let's say Watch TV in different ways. (With a virtual button in the app, with a physical button, with my voice)
    Do I need to make three flows please?
    Would make more sense, in this case, to have one flow with different triggers, right?
    If I can vote for such feature then please let me know the location.
    Thanks in advance!
  • JPeJPe Member
    edited December 2017
    did you check if you can use https://apps.athom.com/app/org.scheffers.homey.sets

    @PitVM https://github.com/athombv/homey/issues?q=is:open

    search if there is already a topic on this, if not make a new topic.
  • I think it should be possible to have multiple triggers (AND and. OR 's) in the "when" part of the flow (without the need of an additional app). Technically it should be feasible I think.
  • Like JPe, I'm also thinking about Sets. I wrote a use case to combine three motions sensors into one set which triggers the lights in my living room. Using Sets reduced my number of flows significantly. It is the fourth post on the page below. 
    https://forum.athom.com/discussion/936/positive-flows-that-work
    You can change the way Sets is working for your situation. For example an AND or OR relation for the different 'states' within the 'Set'.
Sign In or Register to comment.