Steps to create a conditional rule:
- Go to Apps in Hubitat
- Click on Rule Machine
- Click on Create New Rule
- Name the rule: Notification - Car charger not plugged in
- Click on Done
- Click on Install Rule
- Click on Select Actions to Run
- Click on Create New Action
- Click on Select Action Type to add and select Conditional Actions
- Click on Select Which Action and select If expression Then
- Click on Define Expression element and select New Condition
- Click on Select capability for Action Condition and select whatever device type provides you with a power reading (e.g., Power meters?)
- Click on the selected device type and select a specific device (I'll call it "Car Charger Plug" for this example)
- Click on Comparison and select <
- Enter a Power level value, such as 1300
- Click on Done with IF expression THEN
- Click on END-IF at the bottom of the Actions table
- Click on Done with Actions
- Click on Update Rule
To complete your Rule, you will need to:
- Define a Trigger, such as your presence sensor becoming true (optionally add "and stays that way for X minutes")
- Add a Delay action before the IF-THEN action (20 minutes, for example, to give you time to plug in)
- Insert a Notification action between the IF-THEN action and the END-IF action (to warn you that you got home and 20 minutes passed and car charger power is not being drawn).
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.