Announcement

Collapse
No announcement yet.

New to HS3, trying to understand complex event logic with AND and grouped ORs

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

  • garryadkins
    replied
    Awesome thanks. You have any other jewels out there?

    I searched the forum, but didn't go back 4 years. Why is this not in the documentation for a $600 piece of software?

    -G

    Leave a comment:


  • rprade
    replied
    Originally posted by garryadkins View Post
    Hi, I'm new to HS3 Pro, moving my whole system from a long time Vera implementation (since probably 2011?) I like what I see so far.

    I have about 50 zwave devices in my network.
    I've been searching the forums, but can't find a good explanation of how the event logic works.

    I am familiar with scripting (have done a lot of LUA on Vera, as well as integration with my home PBX on an RPi).

    HS3 doesn't appear to have anything like the Vera home modes out of the box, so I thought I would try my hand at implementing something. Here's basically what happens when I turn on "Night Mode" in vera:
    1) Turns off a bunch of lights
    2) Sets the upstairs thermostat to specific values
    3) Sets a few motion and door sensor to alert me if they see anything.

    I have 1 and 2 working, but I'm struggling with #3, because the logic is slightly complex.

    I created a device called "Home Mode" and it has 4 values: Home, Night, Away, Vacation

    In night mode I just want the exterior motion sensors and sensors armed to speak to me. (I'll do more with this later, this is for testing)

    Here's the logic I want:
    IF First Floor Garage Motion Sensor changes to become MOTION
    AND
    ((HOUSEMODE == NIGHT) OR (HOUSEMODE == AWAY) OR (HOUSEMODE == VACATION))
    THEN Speak some text.


    I can't figure out how to group the 3 OR statements. I can't figure out how to do multiple "This device has a value equal to" Night/Away/Vacation.

    Can someone help me understand how to do the logic above with 3 OR grouped together?

    Thanks!

    My screenshot attached.


    System information:
    Current Date/Time: 6/21/2019 4:49:02 PM
    HomeSeer Version: HS3 Pro Edition 3.0.0.531
    Operating System: Microsoft Windows 10 Home - Work Station
    System Uptime: 2 Days 14 Hours 43 Minutes 4 Seconds
    IP Address: 10.0.250.30
    Number of Devices: 158
    Number of Events: 46
    Available Threads: 1022
    HSTouch Enabled: True
    Event Threads: 30
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed: Norton Security Windows Defender
    In Virtual Machine: No MFG: gateway
    Enabled Plug-Ins
    2.0.59.0: BLBackup
    2.0.11.0: BLEditor
    2.0.28.0: BLOccupied
    2.0.36.0: BLSecurity
    3.0.0.34: ImperiHome
    1.2.7067.5887: WebHook Notifications
    3.0.1.252: Z-Wave
    It is done as follows:

    IF First Floor Garage Motion Sensor changes to become MOTION
    AND IF ((HOUSEMODE == NIGHT)

    OR IF First Floor Garage Motion Sensor changes to become MOTION
    AND IF. (HOUSEMODE == AWAY)

    OR IF First Floor Garage Motion Sensor changes to become MOTION
    AND IF (HOUSEMODE == VACATION))
    THEN Speak some text

    Read more here

    Leave a comment:


  • New to HS3, trying to understand complex event logic with AND and grouped ORs

    Hi, I'm new to HS3 Pro, moving my whole system from a long time Vera implementation (since probably 2011?) I like what I see so far.

    I have about 50 zwave devices in my network.
    I've been searching the forums, but can't find a good explanation of how the event logic works.

    I am familiar with scripting (have done a lot of LUA on Vera, as well as integration with my home PBX on an RPi).

    HS3 doesn't appear to have anything like the Vera home modes out of the box, so I thought I would try my hand at implementing something. Here's basically what happens when I turn on "Night Mode" in vera:
    1) Turns off a bunch of lights
    2) Sets the upstairs thermostat to specific values
    3) Sets a few motion and door sensor to alert me if they see anything.

    I have 1 and 2 working, but I'm struggling with #3, because the logic is slightly complex.

    I created a device called "Home Mode" and it has 4 values: Home, Night, Away, Vacation

    In night mode I just want the exterior motion sensors and sensors armed to speak to me. (I'll do more with this later, this is for testing)

    Here's the logic I want:
    IF First Floor Garage Motion Sensor changes to become MOTION
    AND
    ((HOUSEMODE == NIGHT) OR (HOUSEMODE == AWAY) OR (HOUSEMODE == VACATION))
    THEN Speak some text.


    I can't figure out how to group the 3 OR statements. I can't figure out how to do multiple "This device has a value equal to" Night/Away/Vacation.

    Can someone help me understand how to do the logic above with 3 OR grouped together?

    Thanks!

    My screenshot attached.


    System information:
    Current Date/Time: 6/21/2019 4:49:02 PM
    HomeSeer Version: HS3 Pro Edition 3.0.0.531
    Operating System: Microsoft Windows 10 Home - Work Station
    System Uptime: 2 Days 14 Hours 43 Minutes 4 Seconds
    IP Address: 10.0.250.30
    Number of Devices: 158
    Number of Events: 46
    Available Threads: 1022
    HSTouch Enabled: True
    Event Threads: 30
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed: Norton Security Windows Defender
    In Virtual Machine: No MFG: gateway
    Enabled Plug-Ins
    2.0.59.0: BLBackup
    2.0.11.0: BLEditor
    2.0.28.0: BLOccupied
    2.0.36.0: BLSecurity
    3.0.0.34: ImperiHome
    1.2.7067.5887: WebHook Notifications
    3.0.1.252: Z-Wave
    Attached Files
Working...
X