Announcement

Collapse
No announcement yet.

Event Trigger value change, using a vDevice's value?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mulu
    replied
    mterry63 This might be possible already. When you select A Device's Value is... you can chose This expression is true... I didn't use it so I am not sure how complex you can get with it.

    Leave a comment:


  • mterry63
    replied
    Or just do this Run event when the time equals a device value or string - HomeSeer Message Board

    It would be great if spud could add a vb.net evaluation as a trigger in EasyTrigger. Any expression that evaluates as true would trigger an event.

    Leave a comment:


  • mterry63
    replied
    I think you could do this easily - Setup a helper event to trigger every minute, and in the event have an immediate script that compares the current time to the time in your virtual device, and have that call hs.TriggerEvent("real-event") if they match. Immediate script vb.net if operator "&nif()" would work great in this case. Check immediate script and wait until completion.


    Leave a comment:


  • Ltek
    replied
    Originally posted by Uncle Michael View Post
    How many different times to you expect to use?
    If it's a few, then you could have an OR IF trigger for each time, where each OR is accompanied by a condition that a virtual device value is T1 for the first one, T2 for the second, T3 for the third, etc.
    Then set the virtual device value to T1, T2, or T3, etc to trigger at that time.
    If the time is 6:30
    And If VD1 = 630

    OR IF the time the time is 7:00
    And If VD1 = 700

    OR IF the time is 8:00
    And If VD 1 = 800

    Then . . .
    I guess that's true. I can do every 30 min between 6 & 9am but was hoping there was an easier, more flexible, and slicker way

    Leave a comment:


  • Uncle Michael
    replied
    How many different times to you expect to use?
    If it's a few, then you could have an OR IF trigger for each time, where each OR is accompanied by a condition that a virtual device value is T1 for the first one, T2 for the second, T3 for the third, etc.
    Then set the virtual device value to T1, T2, or T3, etc to trigger at that time.
    If the time is 6:30
    And If VD1 = 630

    OR IF the time the time is 7:00
    And If VD1 = 700

    OR IF the time is 8:00
    And If VD 1 = 800

    Then . . .

    Leave a comment:


  • Ltek
    started a topic Event Trigger value change, using a vDevice's value?

    Event Trigger value change, using a vDevice's value?

    I'd like to us a vDevice to set/change the Time of Day an Event is triggered.

    I would create vDevice that has values like... 06:30 07:00 08:00 ... etc
    these are pre-configured Clock Times

    I don't see a how to have ET evaluate that vDevice against the Time of Day, and thus trigger the event when they are equal.

    I know the expression would be something like...
    $time = $$DVR:1234:
    ... but how to make it trigger?

    anyone done this or have an idea?

    Thanks for the help!
Working...
X