In case you missed last night's Hubitat Live! episode, here is a summary:
@bravenel speaks about the newly released Basic Rules built-in app and how easy it is to set up home automation: (@ 3m:13s)
Sneak Peek - Bruce talks about a new and exciting feature coming in the next release: global variables! Soon you will be able to elevate your environment to new heights with Hub Variables
@mike.maxwell showcases some of his favorite Button Controllers. Among the products presented, he talks about some new and yet-to-be released products by Jasco/GE, as well as some devices that are already available on the market (and on sale), such as Zooz ZEN32 and Zooz ZEN34. Both Zooz devices feature 700 Z-Wave chip that plays well with your 700 Z-Wave chip hub -- Hubitat C-7. If you don't own a C-7 hub, now is the perfect time to grab one:
Hub Variables is very exciting, not only for what happens under the hood, but lots of other things - including making it easier for custom apps to interact with built-in apps, and sharing variables with other systems like Node-RED and HASS.
Also - nothing to get me out of the pandemic blues than watching Pete Borchers! Go @pete!!
Waiting in anticipation for Hub Variables. I live and die by variables in Rule Machine and having them exposed globally where other apps have access to then will be great.
Currently only global variables can be made into devices (using connectors). The devices can be shared with HASS or NR, where they can be converted back into context variables (for instance). This could not be done with local variables.
Since both global variables and local variables are being replaced with Hub Variables, which also support connector devices, it provides a way to bring any Hub variable into NR.
Dang I purchased a C7 in April at $129 from an authorized reseller and thought that was a good deal. Too bad I didn't wait another month and could have got this this $115 deal.
Hub variables being proper database objects and faster. I'm hoping this fixes my extremely tardy motion lighting routines on HE, which use variables for various controls. We will see. But how to migrate? We have to recode those rules or the system will assist and move existing variables to the new ones along with any existing connectors?
The other thing I thought was interesting were some of the conditions in the basic rules system, something about if the power was under a value for a while etc. Bruce explained this was difficult to do in RM. Well, I like RM and have spent hours learning its foibles and would like advanced stuff like this added to it so that it remains the most comprehensive rules solution, otherwise we are in danger of fragmentation. I'll need to learn multiple apps and choose which one to use depending on the circumstance. I know that's part of the idea - but if advanced capabilities go into the apps for beginners and don't end up reflected in the "mother of all rules engines" (MOARE) then for me that's a pain. I want MOARE ok
@bravenel
Currently when I use a local variable in a rule I don’t have to worry about a variable with the same name being used in another rule and it’s value being inadvertently changed.
If all variables are Hub variables, and essentially global variables, how does this work?
It's a tradeoff. Hub Variables have a number of advantages over the existing variables mechanism. So, yeah, you'll need to manage that namespace across your apps.
BTW, Rule-4.1 is not going away, or losing its local variable feature. So you'll still be able to do that.