I created an automation to run a LED notification on a inovelli blue switch when raining using ZHA. It works but ram usage on home assistant grows the long it runs. I also have versions of this for snow and lighting.
This will also dims/brighten the LEDs when the switch is turned on/off.
It also has conditions not to run when my garage door is open or basement sensor detects water. I did this to prevent this from running when other automatons I created are running.
But they don’t seem to have made it to the latest release yet, and I don’t see them in ZHA either. I would expect once 2.11 is ready to go that it’ll all get pushed out together.
They’re in ZHA, just need to do a Device Action in the automation and you should see them there. If not, may just need to update HA?
For the original issue, @bheberling001 I would agree with @MRobi that you shouldn’t repeat the automation but it would be better to change the effect duration to indefinite and then send a notification to clear the effect once it’s no longer rainy/pouring?
Oh, I think I get what you mean…if you turn the light on/off during, the level isn’t going to change to match the expected behavior?
I think the way to do this would be to trigger off a state change from the light switch(es) themselves as well, and then depending on weather state you would send the updated effect command. So that any time the weather changes, you’ll activate/clear the effect, or if a switch turns on/off, it’ll check the same conditions to update the effect if it’s on.
correct, Basically I am trying to replicate the default function of the switch. where the LED is one brightness when the switch is on and another when the switch is off.
As for the trigger states that sounds like it would work. I unfortunately don’t know what to write that properly. I might have time over the weekend to play with it and see what I can come up with.
You are correct. I was looking at the beta repo not the production repo
Interestingly, with z2m, I don’t have the effect listed unless I load a custom converter. But I do see it listed in the zigbee-herdsman-converters repo. I assume it just hasn’t rolled into the HA addon version yet.
I can’t test since I’m on z2m, but this should get you pointed in the right direction. You’ll need to adjust the triggers to fit your device.
What this uses for triggers are pressing up on the switch and pressing down on the switch. You’ll have your conditions listed so it must be NOT raining, garage open (I assume you want the opposite of all this but I just copied conditions from your original automation). Then your actions are based on if the up or down button is pressed.
I believe I have everything working now. there are three automatons.
The goal will be to replace switches all over the house with these. I want the dynamic LED brightness for when I have switches in the bedroom and living room. I don’t want to woken up or distracted by a super bright flashing LED. when the lights are off but I do want to be able to see them if the lights are on.
First is the water sensor (for basement flooding). This sends a push notification to my phone, sends a TTS alert to all google home speakers, and sets the switch LED to a red “siren” pattern at 100% brightness.
Next this the garage door notification. This sets the LED to purple “pulse” pattern and has two brightness’s (If Switch is on it is 33%, If switch is off 1%) and this will change “live”. It also has a condition not to run if the water sensor detects water. so not to over lap the previous automation.
Last is the weather LED. This has various colors and patterns based on the current weather condition. It also has the dynamic LED brightness and has conditions not to run if the water sensor detects water or if the garage door is opened.
If you are using any sort of Android TV in your home, check out PIPup. There are a few custom versions on the HA community forum that will let you have a popup window displaying a live feed of your doorbell camera when a person is detected. I don’t believe there is an AppleTV alternative yet.
I actually already have that for my office TV using a chrome-cast when someone rings the doorbell. I don’t know if I would want it for just person detection.