Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request for Event Filter
#1
Is it possible to add an event logic? Not sure if that is the correct nomenclature or not.

Right now there is:
All True
One or More True
Only One True

To me is seems like the second and third are the same. Can we include

Two Or More True

Lets say I need to turn on a light depending on motion and time of day. The day is divided up into Morning, Day, Evening and Nite. Morning, Day and Evening turn on the light to 100%. Nite turns on the lite to 20%. Now I have to write three or four different events. However if I could use one event to include Motion Trip, Day variable as Morning, Day variable as Day, Day Variable as Evening. Since the Day variable can only be one of those then any combination of Motion and the Day variable would turn on the light.
Thanks
George M
Reply
#2
The second and third aren't the same. The third means only one of them can be true. If more than one is true the filter will return false. The second means that at least one must be true, but more than one can be true.

We can't do the thing you are talking about, not at least using the scheme it currently uses, which are boolean logic type operations, not counters. It's not actually counting how many are true or false, it's using boolean AND, OR, and XOR operations to create a bitmask where one bit represents each of the four filters. It then just sees if the resulting value is zero or non-zero.

So it would take a fairly significant change to do that.

Keep in mind that you can put the common logic of these actions into a global action and invoke that, passing it parameters to tell it what to do. So you could probably minimize the redundancy pretty significantly.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  event and subsequent countdown timer question dogman 9 5,003 05-03-2018, 06:36 PM
Last Post: dogman
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,573 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 4,855 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  Thingspeak event monitor potts.mike 5 3,519 05-09-2015, 06:11 PM
Last Post: wuench
  event scheduler ellisr63 8 4,088 04-11-2014, 02:43 PM
Last Post: ellisr63
  CQC & Event Ghost Read current state jdmevo123 3 2,783 12-05-2013, 06:49 PM
Last Post: wuench
  new widget, scheduled event modifier willplaice 2 2,184 01-14-2013, 01:33 PM
Last Post: willplaice
  ISY99 - Changing an Enumerated Field in a Scheduled Event kblagron 2 2,181 09-20-2012, 09:49 PM
Last Post: kblagron
  Event Server - Scheduled Events DaveB 2 2,567 06-05-2011, 05:58 AM
Last Post: DaveB
  Triggered event to turn stuff off zra 16 5,720 03-30-2011, 03:18 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)