Originally posted by macromark
View Post
Announcement
Collapse
No announcement yet.
Feedback Request: Conditional Actions
Collapse
This topic is closed.
X
X
-
Originally posted by ecetron View Post
I think I was very unclear -- the END was not so much to delineate the end of the block (colors work well) but to exit out of the event itself to stop any further processing.... more of an ABORT/RETURN/EXIT if you will....
Comment
-
Just to be clear, am I correct that conditions that follow a THEN apply only to actions before the next THEN, but all actions are affected by conditions that appear before the first THEN?Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
Comment
-
Originally posted by macromark View Post
Can you give me a real world example of where this would be needed?
Indenting items under each Then would make reading a little easier, but the THEN sections do work.
Karl S
HS4Pro on Windows 10
1070 Devices
56 Z-Wave Nodes
104 Events
HSTouch Clients: 3 Android, 1 iOS
Google Home: 3 Mini units, 1 Pair Audios, 2 Displays
Comment
-
I assume from this that ELSE is not an option, even within a THEN group, correct?Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
Comment
-
Originally posted by Uncle Michael View PostI assume from this that ELSE is not an option, even within a THEN group, correct?
Old way:
IF a = 1
THEN do Something
ELSE do SomethingElse
New way:
IF a = 1
THEN do Something
IF a <> 1
THEN do SomethingElse
In my mind, just getting what MacroMark proposed is a HUGE win and will reduce my Event count considerably.
Comment
-
Originally posted by ecetron View Post
I think I was very unclear -- the END was not so much to delineate the end of the block (colors work well) but to exit out of the event itself to stop any further processing.... more of an ABORT/RETURN/EXIT if you will....stefxx
- Likes 1
Comment
-
Originally posted by macromark View Post
Can you give me a real world example of where this would be needed?
And again -- sorry for the nit-picking but just having this enhancement is HUGE... and greatly appreciated...
- Likes 1
Comment
-
Originally posted by ksum View Post
I believe the thought may be such as shown below. I wanted to keep the Run Event action as well but my image editor didn't allow. Apologies for that but I think it gets the idea across. If one condition is met, stop processing further. Of course, for many actions you could make sure orders and conditions are good, but this becomes as helpful as Return statement in the middle of any function. I wonder if it could be handled by multiple events, but know the goal of some is to limit the number of events they have.
Indenting items under each Then would make reading a little easier, but the THEN sections do work.
Comment
-
Originally posted by macromark View Post
Karl - If I understand what you're saying the END in your example serves as a FULL STOP for the event.. that the next 2 THEN blocks would not execute if the first THEN block does. Am I getting that right?
That is what I had intended -- and I think that matches Karl's interpretation of my original comment...
Comment
-
Originally posted by macromark View Post
Karl - If I understand what you're saying the END in your example serves as a FULL STOP for the event.. that the next 2 THEN blocks would not execute if the first THEN block does. Am I getting that right?Karl S
HS4Pro on Windows 10
1070 Devices
56 Z-Wave Nodes
104 Events
HSTouch Clients: 3 Android, 1 iOS
Google Home: 3 Mini units, 1 Pair Audios, 2 Displays
Comment
-
In regard to the "END", a simple way to implement this would be to have a new action like "End Actions". You can then add that as the last action in your condition group to stop action processing. This action would only be available if you were editing a "Then" block with a condition.
- Likes 1
Comment
-
Originally posted by rjh View PostIn regard to the "END", a simple way to implement this would be to have a new action like "End Actions". You can then add that as the last action in your condition group to stop action processing. This action would only be available if you were editing a "Then" block with a condition.Karl S
HS4Pro on Windows 10
1070 Devices
56 Z-Wave Nodes
104 Events
HSTouch Clients: 3 Android, 1 iOS
Google Home: 3 Mini units, 1 Pair Audios, 2 Displays
- Likes 1
Comment
-
Originally posted by macromark View PostSo, there are number of considerations involved with adding this feature. Certainly, one of the biggest is that we don't want to "break" the event engine for those who have no interest in using this feature and simply want to continue to use it as they always have. For those folks, the essential format will remain the same. These are the proposed changes:
The trigger group up top will be untouched except for the following changes.- Master trigger dividers will be changed from IF and OR IF to WHEN and OR WHEN
- Row colors and/or dividers will be changed to this: Red-hued colors will be used for triggers and trigger dividers, existing blue-hued condition rows will now have blue-hued divider blocks (AND IF).
- THEN dividers will be colored green and will extend the length of the row. These dividers will signal the beginning of ACTION GROUPS. If conditions are not added to any actions, there will only be 1 action group (as there currently is)
- Clicking the [+] button as the end of a action group will add another action group
- A new "add condition" icon will be added to actions. Clicking this will open the existing screens for creating conditions immediately above that action in the same action block.
- As before, it will be possible to edit, move, enable/disable, delete and add more actions to/within a group. It will now be possible to move, enable/disable, delete and add action groups in the same manner.
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
Comment