can I run a script from with in another script?
my desire is to be able to change mode to AWAY and have everything turn off
but then turn on the SunsetLights if the time is between sunset and sunrise
thanks
can I run a script from with in another script?
my desire is to be able to change mode to AWAY and have everything turn off
but then turn on the SunsetLights if the time is between sunset and sunrise
thanks
What do you mean with "script"? If you mean a Rule Machine rule, you can run the actions of one rule from another. Options may vary in other apps. From your description, it's not apparent why multiple apps or rules would need to be involved, so I'd recommend sharing more details on your setup if this still isn't clear.
To do what you describe, I would do the following in Basic Rules (Replace Basement with “Sunset Lights”):
If you prefer to use Rule Machine, the following would do the same:
Required Expression: Time between sunset and sunrise
Trigger: Mode change to away
Action: Turn on Sunset Lights
thanks but i think i miscommunicated
i want to change mode to away,
then turn everything off
then IF dark outside turn on the outside lights
You don't need to run a rule from a rule to do what you are describing. Sounds like a fairly simple Rule can be written to change mode to away, then another action to turn all light off, then another conditional action to turn outside lights on if the Weather Lux is less than say 100 (or whatever darkness you want). You'll need to have a weather device to do this or another lux sensor. Or alternatively use the between sunset and sunrise time method mentioned above.
what I did in ISY was i have a 'Scene' that included ALL lights in and out.
then i had a scene that included all outside and a few indoor lights
so my rules/script would
Turn set the Scene for ALL lights to OFF
then IF dark outside, turn on the outdoor and a few inside lights on
i have realize with this I need two rules for when LEAVING house
that works or you could just use one rule and add a conditional "if" up front. I think they are equally efficient but one rule feels more elegant to me. By the way, we don't hear too much from ISY users these days. I have an ISY hub tucked in my museum somewhere. I met the founders - great folks. I tried sticking with it but it was just too non mainstream.
One thing that is nice but can sometimes be daunting with Hubitat is that there are many, many ways to do things. It’s a matter of preference.
What you are looking for can be done with 1 rule in Rule Machine, multiple rules in Rule Machine, with Basic Rule(s), with the Motion and Modes Lightning App, etc.
using Rule Machine... can there be multiple if/then/else statements?
it will just take some getting used to with Hubitat but as you say many ways to do things
thanks
In my experience, changing modes and taking actions based on the mode change is independent of Illuminance levels. The key to successful home automation is not overcomplicating the logic, but instead oversimplifying it. If the outdoor lights should always come on at certain point (sunset, lux level, time, etc) regardless of the mode the home is in, then create a rule for that particular use case. Many dedicated rules for specific use cases are easier to manage and troubleshoot than a few complex rules with many breaking points.