Announcement

Collapse
No announcement yet.

Easy Trigger plug-in - Feature Requests

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jvm
    replied
    Originally posted by ryanoly View Post
    Set Group of Devices to expression.

    Add $DEVICECHANGE. It would return the number of seconds since the device has changed.

    I'm guessing if i knew scripting well enough I could make this happen with the current version of the plug-in.

    I have about 35 switches I would like to turn off if they have been on for a certain amount of time and within a schedule. There are a bunch of ways I could do this. Right now I just have a separate event for each device.

    I was thinking it would be nice to use a group and set group to expression as a shortcut to create just one event.

    If any value in Group X has not changed for exactly 15 minutes
    then
    set Group X to if ($DEVICEVALUE > 0 && $DEVICECHANGE > 899, 0, $DEVICEVALUE)
    check the option not to send if the value has not changed.
    I think the script shown in the image below does what you want. In this case, it monitors a group of dimmers specified by the group "Basement_Dimmers" and if any of them has been one for a minute, will turn that one off. Note that if there are multiple devices in the group that have been on, this will execute multiple times, turning off each.

    Of course, you can also add in your schedule requirements as additional "and if" conditions.

    To avoid the scripting part, I've suggested that spud add a new feature which would eliminate the need for the scripting (see Posts # 574, 587) - I suspect he's tied up with other work on HS4 for now, but hopefully we'll see something in the future to simplify these scenarios where you want to control the device that caused the group trigger to trigger.


    Click image for larger version

Name:	Capture.PNG
Views:	64
Size:	175.4 KB
ID:	1361678

    Leave a comment:


  • spud
    replied
    Originally posted by John245 View Post

    Do I need to re-create events in case I migrate to the HS4 version of this PI?

    ---
    John
    The HS4 version does not exist yet, but the goal is to not have to recreate events when you migrate.

    Leave a comment:


  • John245
    replied
    Originally posted by spud View Post

    I will add that in the HS4 version of the plugin (no ETA yet)
    Do I need to re-create events in case I migrate to the HS4 version of this PI?

    ---
    John

    Leave a comment:


  • ryanoly
    replied
    Set Group of Devices to expression.

    Add $DEVICECHANGE. It would return the number of seconds since the device has changed.

    I'm guessing if i knew scripting well enough I could make this happen with the current version of the plug-in.

    I have about 35 switches I would like to turn off if they have been on for a certain amount of time and within a schedule. There are a bunch of ways I could do this. Right now I just have a separate event for each device.

    I was thinking it would be nice to use a group and set group to expression as a shortcut to create just one event.

    If any value in Group X has not changed for exactly 15 minutes
    then
    set Group X to if ($DEVICEVALUE > 0 && $DEVICECHANGE > 899, 0, $DEVICEVALUE)
    check the option not to send if the value has not changed.

    Leave a comment:


  • spud
    replied
    Originally posted by richardfj View Post
    Any thoughts / plans regarding incorporating HS4's Categories as a condition in Dynamic Groups?
    I will add that in the HS4 version of the plugin (no ETA yet)

    Leave a comment:


  • richardfj
    replied
    Any thoughts / plans regarding incorporating HS4's Categories as a condition in Dynamic Groups?

    Leave a comment:


  • Paul vdK
    replied
    Hello Spud,

    Great plugin.
    Can you add, in the header of your easytrigger plugin config page, sort and filter options for the schedules and device groups.

    THX

    Leave a comment:


  • jvm
    replied
    Originally posted by spud View Post

    Are you talking about nested groups?
    If so would that be ok for you if I add a group type called "Super Group" in which you can only select other groups (dynamic or static) ?


    My apologies, I meant post #574.
    The idea there was that if you have a group of devices used in a trigger, there should be an easy way to act on just the triggering device without having to use CAPI.

    I've given a few ideas of how this could be implemented depending on which you think is easiest.

    I also have thought of a third mechanism which is to have an Easy Trigger Action that acts on a device identified by its HomeSeer Reference number.:

    For example, if you have a group of 50 devices (say all your lights), and you want to make sure that no light was ever set below 5%, you would have a Event that triggered on any of the lights in the group changing, and then in the body, you could have an action like:


    Easy Trigger Set Device device identified by Reference Number ______ to expression _____________


    Where the first blank can be $ETDeviceRef, a fixed number, or a simple expression using $ETDeviceRef
    and the second blank can be any expression that you normally use in Easy Trigger Set Device to Expression. In this case, the expression to make sure you don't set any device to less than 5% (but still allow 0 for off) might be something like ( $NEWVALUE > 0 && $NEWVALUE < 5) ? 5 : $NEWVALUE


    As a second use case, you could have a group of all of your Central Scene devices where, if any central scene device is set to triple tap (value 1004) you would set the related light value to 99%. So, for that, you would get ETDeviceRef as the triggering device, but you would want to control the light which HomeSeer typically assigns the next reference number, or ETDeviceRef + 1, thus

    Trigger: Any Device in Group [Central Scene Group1] set to 1004
    Then
    Easy Trigger Set Device identified by Reference Number ($ETDeviceRef+1) to expression: 99

    Thanks for your consideration of these ideas.

    Leave a comment:


  • rprade
    replied
    Originally posted by spud View Post

    Are you talking about nested groups?
    If so would that be ok for you if I add a group type called "Super Group" in which you can only select other groups (dynamic or static) ?


    While I didn’t make the initial request, that would seem to satisfy the need.

    Originally posted by drhtmal View Post
    Would it be possible to add a feature that allows groups to be added to group? Let's say I have several groups (one for each floor) named All-Lights-Basement and All-Lights-Main-Floor and All-Lights-Second-Floor. These groups contain all the lighting devices for each respective floor. I also want a group called All-Lights which would have all lighting devices from all the floors. Rather than add all the lighting devices to the All-Lights group I could just add the groups for each floor to the All-Lights group. With this feature it would be easier to maintain the groups.

    Programmatically that makes sense. If someone wants groups to contain other groups, a “super group” container would do it.

    Leave a comment:


  • spud
    replied
    Originally posted by jvm View Post
    spud . Any thoughts on the suggestion at post #584? IF you're doing an Easy Trigger update for HS4, could this be added in that version at least?
    Are you talking about nested groups?
    If so would that be ok for you if I add a group type called "Super Group" in which you can only select other groups (dynamic or static) ?

    ​​​​​​​

    Leave a comment:


  • jvm
    replied
    spud . Any thoughts on the suggestion at post #584? IF you're doing an Easy Trigger update for HS4, could this be added in that version at least?
    ​​​​​​​

    Leave a comment:


  • SmartyPants
    replied
    Hi.

    When selecting a schedule as a condition, can we make the selection multi-choice rather than just one schedule?

    It would cut down a little on event creation. So for example;

    IF the device changes and become 'doh',
    AND IF the time is in this schedule range:
    Schedule 1
    Schedule 3
    THEN tell Alexa to strangle the Wife.

    Leave a comment:


  • teladog01
    replied
    Originally posted by SmartyPants View Post
    Hi.

    Something that seems lacking in HS but would add much power and flexibility is the ability to address a device by it's ref id for example, but which is contained within a variable or virtual device.

    At present you can only select a physical or virtual device for the initial THEN action, you can then control that device in various ways through Spuds plugin, even applying another devices value to it, but what remains fixed and limited is the original device to which you are applying something to.

    A major flexibility would be gained if the initial THEN action device could change dynamically, that is, if we could select a variable or VD which contained the device ref id (or other ref point) as a value representing the device to control. If this was the case, it could have the potential to reduce the need for many similar events.

    I currently use a script for this, which I have yet to thank the creator chap, and while it works perfectly there is a bit of a sluggish response calling a script for dimming multiple times, whereas Spuds toggle offers instant no lag dimming.

    So in my example;

    I have a VD with a value representing a kitchen light. I press a button on the remote and it runs an event that takes the VD value (ref id of device) and applies the actions to it.

    I then press another button on the remote which changes the value of the VD to another device, when I run the same event it now dims a different light. I've not explained in detail what I use the script for, so the above may not make much sense or you may not see the advantages, but it seems to me that by way of simply having the ability to make the initial device a dynamic one, you can reuse an event multiple times.

    Hope that's clear, if not let me know.
    Sounds very similar to jvm's suggestion in post #574. I agree this functionality would be very powerful 👍

    Leave a comment:


  • teladog01
    replied
    Originally posted by drhtmal View Post
    Would it be possible to add a feature that allows groups to be added to group? Let's say I have several groups (one for each floor) named All-Lights-Basement and All-Lights-Main-Floor and All-Lights-Second-Floor. These groups contain all the lighting devices for each respective floor. I also want a group called All-Lights which would have all lighting devices from all the floors. Rather than add all the lighting devices to the All-Lights group I could just add the groups for each floor to the All-Lights group. With this feature it would be easier to maintain the groups.
    I agree, nested groups would be useful 👍

    Leave a comment:


  • drhtmal
    replied
    Would it be possible to add a feature that allows groups to be added to group? Let's say I have several groups (one for each floor) named All-Lights-Basement and All-Lights-Main-Floor and All-Lights-Second-Floor. These groups contain all the lighting devices for each respective floor. I also want a group called All-Lights which would have all lighting devices from all the floors. Rather than add all the lighting devices to the All-Lights group I could just add the groups for each floor to the All-Lights group. With this feature it would be easier to maintain the groups.

    Leave a comment:

Working...
X