Trying to send notifications to my chrome speaker and cell phone to let me know when my EV and plug-in Hybrid vehicles are charging and when they are finished.
My Class 2 EV charger has a circuit monitored via IoTaWatt, and the circuit is visible in Hubitat via the excellent IoTaWatt Power Monitor Driver available here: [Release] IoTaWatt Power Monitor Driver v0.1.20220103
I've written a rule that triggers when the power exceeds 3.5KW. My plug-in Hybrid (Ruby) only charges at 4-5Kw and my EV (Whitey) charges at 8-10Kw, so I determine which vehicle is charging based on the power. I use a private boolean to disable activating the rule when the charger start notification has already initiated.
The rule shown below will trigger the charge-start notification once and that's it. Doesn't trigger the end of charge and doesn't ever reset the boolean. If I remove the boolean lines of code, the rule just keeps telling me that my car is charging every few minutes.
Would appreciate some coaching from the experts here...