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

  • spud
    replied
    Originally posted by kideon View Post
    Can you add a toggle action? I know there's a script out there but it'd be easier this way.
    In version 3.0.0.25 (available here) I have added the "Toggle Device" action

    You can toggle the device between 2 or more values (up to ten), and you can even choose specific value within a range.
    Ideally the values you select need to be both control and status, if they are control only the plugin won't be able to match the current status of the device with one of the toggle value, so in this case it will use the last toggle choice that was fired and increment from that value.

    Click image for larger version

Name:	toggleonoff.png
Views:	1
Size:	16.7 KB
ID:	1184377

    Click image for larger version

Name:	togglevolume.png
Views:	1
Size:	14.0 KB
ID:	1184378

    Click image for larger version

Name:	togglerepeat.png
Views:	1
Size:	13.9 KB
ID:	1184379

    Leave a comment:


  • sirmeili
    replied
    Originally posted by spud View Post
    To the best of my knowledge, I don't think there is any API call that can let us know if a device has a delayed action.
    Ok, you can tell me I'm bat crap crazy if you want. I haven't had time to delve into writing plugins for HS yet, so this may be off. This may not work because it could be that "conditions" are not evaluated at time of the parent trigger, but are stored when that "condition" happens as a trigger (even though it's not a trigger).

    So my thoughts are this:

    1) List all the events (hs.Event_Info_All)
    2) Loop through the events and look for ones in group "Delayed Voice Action Events" (or you could list all the "groups" or just do Delayed Action Event or Delayed Voice Action Events).
    3) For each of those events get the Actions

    This is where I couldn't find any more information and this may not be possible:
    4) Check each action for the presence of a device


    I don't think that 3 returns actual "action" objects. I think it just returns names. I don't know if you can look up "actions" anywhere, or if you can look up the actions at all in HS (I think this was possible in HS2, but maybe not HS3?).

    I don't know, but maybe this will help? Maybe not. I really could use this because knowing if a device has delayed actions (or delayed voice actions) would be VERY very helpful to me. Perhaps just me though....LOL

    Leave a comment:


  • spud
    replied
    Originally posted by sirmeili View Post
    @Spud,

    I have no idea if you can do this, but I thought I would ask. I would like a "condition" to check if a device has NO delayed actions (or delayed voice actions specifically).

    For instance, my wife says "Alexa, Tell Homeseer to turn off the kitchen automatic lights". Since she didn't say "... for 1 hour" (or any time length), the virtual switch will just stay off.

    So, I was hoping to create an event that says "If this device has been off for exactly 1 hour AND this device has no delayed actions (or delayed voice actions), then..."

    I'm not 100% sure it's doable, but I thought I would ask.
    To the best of my knowledge, I don't think there is any API call that can let us know if a device has a delayed action.

    Leave a comment:


  • sirmeili
    replied
    Originally posted by sirmeili View Post
    @Spud,

    I have no idea if you can do this, but I thought I would ask. I would like a "condition" to check if a device has NO delayed actions (or delayed voice actions specifically).

    For instance, my wife says "Alexa, Tell Homeseer to turn off the kitchen automatic lights". Since she didn't say "... for 1 hour" (or any time length), the virtual switch will just stay off.

    So, I was hoping to create an event that says "If this device has been off for exactly 1 hour AND this device has no delayed actions (or delayed voice actions), then..."

    I'm not 100% sure it's doable, but I thought I would ask..
    @spud, I know you're busy. I'm just bumping this in case you missed it

    Leave a comment:


  • sirmeili
    replied
    @Spud,

    I have no idea if you can do this, but I thought I would ask. I would like a "condition" to check if a device has NO delayed actions (or delayed voice actions specifically).

    For instance, my wife says "Alexa, Tell Homeseer to turn off the kitchen automatic lights". Since she didn't say "... for 1 hour" (or any time length), the virtual switch will just stay off.

    So, I was hoping to create an event that says "If this device has been off for exactly 1 hour AND this device has no delayed actions (or delayed voice actions), then..."

    I'm not 100% sure it's doable, but I thought I would ask.


    Unrelated:
    I'm also still interested in the "device has been X for NOT MORE THAN [time]", even if it has to depend on the device last update date with the caveat that it might not be 100% reliable.

    Leave a comment:

Working...
X