Looking for the best app and how to set up. No app has the AND feature.
Presence sensor ( iphone) home AND car charger plug < less than 20 (any number less than 1300) power?
THEN
notify me that charger not plugged in
Looking for the best app and how to set up. No app has the AND feature.
Presence sensor ( iphone) home AND car charger plug < less than 20 (any number less than 1300) power?
THEN
notify me that charger not plugged in
Rules (regardless of app or platform) involve some basic foundational concepts - triggers, conditions, and actions.
Triggers are events, and conditions are states. Actions are ... well, actions.
A rule must have a trigger event that kicks it off. In some cases, it's necessary (or just desirable) to constrain that event from either firing the rule's actions or steering what & how actions then occur -- that's where conditions come into play.
In your example above, you're missing a trigger event, such as "Every night at 8:00pm" or "When mode changes to Bedtime", etc...
Mode becomes Home is an event, but Mode is Home is a state. Likewise, Power drops below ## is an event, but Power is below ## is a state.
Triggers are events singular in time, so they cannot be combined with an AND. However, because they are states, conditions can be combined with an AND.
Hubitat has numerous rule engines native to it -- Basic Rules and Rule Machine are the two most popular apps for creating raw rules.
Basic Rules is a very good starting point for getting familiar overall with rule logic and creating rules.
Welcome aboard!
A crude trigger might be "Presence sensor (iphone) + X minutes": when you arrive home, you have X minutes to plug in before an IF conditional runs:
IF "car charger plug < less than 20 (any number less than 1300) power" THEN
{send notification}
ENDIF
This is my reminder. I have it set this way with the garage person doors. So that when I take my dog outside in the evening, I get reminded when I walk into the garage.
I often arrive at the house after my drive from the City with a low battery, so this one reminds me to plug in when I open the garage door to go into the house. In case I forgot to plug it in. Also, automatically starts charging right away when I plug-in since the battery is so low
how do i program this?
I cant seem to see an IF type of input in any of the apps
cant figure out THEN
Cant find a THEN
rule machine add conditional expression..
Steps to create a conditional rule:
To complete your Rule, you will need to:
Several other contributors posted examples of more sophisticated rules. Once you create your own basic rule, you might want to look at those examples to see if you can improve your rule.