Possible Bug - Update Rule Missing Under Certain Condition

Good morning all,

It appears the Update Rule button is missing when making changes to a rule and the Rule Function To Return A Value toggle function is turned on [see 1st screen below]. This gives the appearance that you will not be able to save your changes before pressing the done button as is the case when this option is not turned on.

With the above option turned off [by default] the update button appears [see 2nd screen below].

Steps to re-create:

  1. Open up a rule. Toggle on the Rule Function To Return a Value and click on done. I found it to be more consistent if this function is on before editing the rule.
  2. Open the rule back up and make an edit, select Done with Actions button.
  3. Note there is no update button. Your only choice is to select done. Although there is no update button the changes are kept.

This may be my misunderstanding of how things "should work" but the inconsistency of not having the update button there after changes are made gives the appearance that and update is not possible after changes have been made since at any other time after making changes the update button is presented to save your work. To me this inconsistency in the UI is another item that; at the end of the day, is something that the owners of the product will need to decide if is the type of inconsistency throughout their product is something they believe is important to have. Similar to the prior length discussion on text.

Screen-01:

Screen-02:

Don

The "Done" button does save your changes (in any app, not just Rule Machine). The "Update Rule" button is a way to do specifically that in Rule Machine without closing the app/rule, as "Done" also does. You never need to use both, as it sounds like you are doing.

If you are only editing your actions, you do not need to use either button at all, as those changes are just saved as you go. These buttons are necessary only if you change trigger events, required expressions, or want to "re-initialize" the rule by stopping any in-progress waits, delays, previous Private Boolean sets, etc., as which are side effects of these buttons. The documentation is explicit about these differences.

Rule Function rules are basically only actions, so they do not have any of the above. Therefore, this extra button is not necessary.

So, definitely not a bug. :slight_smile: Inconsistent, maybe, but "regular" rules and rule functions are different, so it stems from an actual difference. Hope this helps explain things, at least!

3 Likes

Ah. I did not know that! Thank you.

The rule I supplied was a simple rule I threw together. A fair amount of rules I have either have waits, delays, if then else, while do loops, etc. I believe these would fall under the re-initialize requirement.

Several times I made changes and tried to "bail out" by selecting the apps menu and go back into the rule I was working on. As you indicated the changes I had made were save. Now I understand know why. Thank you for that!

I does seem to be an inconsistency in the UI but as noted earlier the developers can determine its importance / relevancy.

On a more lighthearted note. Everyday while I get to have my one cup of coffee, like a child at Christmas (or their equivalent religious holiday) hoping to get their favorite toy, I open Hubitat and excitedly look in the upper right-hand corner and look for that little red bubble hoping for new updates bringing new feature changes. Also, like a child who receives socks instead of the favorite toy I am disappointed when there is no little read light. I go about my whirlwind of a day just hoping for Christmas tomorrow.

Lately is has been pretty quiet. I tell myself that maybe Christmas has been delayed because maybe; just maybe, all this quietness is because the owners are in the background getting ready to announce something big, really big. Not only yet another new and improved UI but could it be? On no, new hardware too? Maybe two models at the same time? Not only the model C9 but also the C9 Pro for those who want the option of a octal CPU multi-threaded / multi-tasking processor, POE power, built-in UPS aware OS with automatic graceful shutdown built-in, UPS / UPS Solar port backup with cabling option long enough to run a panel on the roof?, 18TB memory. Well it is a Holiday dream. Why not dream. LOL. Wait. I just woke up from my dream. Off to my crazy day.

Maybe the holiday is coming soon :slight_smile:

  • Don. It is not such a great day. Make it one!