Automation with Water level sensor not working

Hello Everyone,
I just installed a Tuya ME201WZ on my balcony Water tank to know when the water level is too low and has to be refilled.
I created an automation which should send me a notification when this is happening, but it won’t work - when I tested the Automation I get the notification no matter what:

alias: Balcony WaterTank Level Warning
description: ""
triggers:
  - type: value
    device_id: 52fdac8f80644fd0e0be67c3e42d71b0
    entity_id: 63b2b9918ae77a8cc223a37a699674e4
    domain: sensor
    trigger: device
    below: 30
conditions: []
actions:
  - action: notify.mobile_app_iphone_di_tda
    metadata: {}
    data:
      message: refill as soon as possible
      title: Balcony WaterTank almost empty!
mode: single

In the traces in the step where it should get how much % there is, I get:
This step was not executed and so no further trace information is available.

Does anyone have an idea what I’m doing wrong? :smiley:

Testing just bypasses the triggers and runs the actions, so this is expected.

What step? You have a single trigger and a single action.

And to clarify, this automation will only trigger when the value drops below 30, not if it already is.

Hello,
Thanks for the clarification.
I will then wait till the % will drop 30% to see if I receive the notification :slight_smile:

You don’t need to wait. You can test it right now by setting the state manually (don’t worry - it’ll revert to its actual value when your sensor sends another reading).

Go to Developer Tools > States tab. Find your sensor entity and click on it, go up to the top of the page and change that to 15, then click Set State. It will cause your sensor to report 15 and trigger the automation

1 Like

Thank you very much - I tested it and works as expected :slight_smile:

1 Like