I’ve recently added the Ecowitt GW1100 and a WH51 Soil Moisture Sensor to my setup. I’ve been able to successfully configure the integration, and I’m receiving readings from the WH51. I’m attempting to add automation so that if the soil moisture goes below a certain threshold (45%) it will trigger a 10-minute cycle from my sprinklers. However, there seems to be an issue with my configuration because I can’t get the automation to work. Here’s what I have (I’ve added a light just to confirm when it triggers):
alias: Garden sprinkler on below 45 moisture
description: “”
trigger:
I have that same sensor. Have you looked at the trace of the automation, or it just never triggers?
Based on what you’ve posted you have picked a device trigger; I’d recommend changing it to entity trigger. It should look something like this, just with your entity name:
It’s weird, in that after I wrote this it triggered. It has also done this in the past. I tried the entity route only to have it never trigger. In checking the trace logs, it looks like it worked as intended.
You stated that the “value must go above 45 for the trigger to occur again” but I have it as below 45% for one hour. Might this be the issue, that it should be “above” which wouldn’t make sense to me, but that wouldn’t be a first.
Yes, it has to start above 45 and go below for one hour for the trigger to occur. It will never trigger again until it has gone above 45 and then below again for 1 hour. If it ever goes above during the 1 hour delay, the trigger is canceled and the cycle starts again.
So, the way I have it written it correct? The trigger should be Below 45% and the only way it will trigger is if the soil moisture goes below the 45% threshold for 1 hour. Am I understanding this correctly?
I’m going to mark this as solved, but with the caveat that I deleted and recreated the automation. For the trigger, I used the device GWB1100 which then triggers a dropdown for the moisture sensor.
The automation has triggered several times today, and I’m going to blame this on gremlins!