Wind Speed Automation not working

Hi,

We had some high windows in the UK yesterday and the only day I needed HA to warn me when they were high it let me down… Reason … because the Met Office integrations failed has its being withdrawn.

Ok so my fault for not updating , which I have now done to Pirate Weather ( took a bit of messing around to get his installed thou ) however despite updating my wind speed warning automation it doesnt work.

alias: Wind Speed Warning
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.pirateweather_wind_speed
    above: 5
    below: 30
    for:
      hours: 0
      minutes: 0
      seconds: 10
conditions: []
actions:
  - metadata: {}
    data: {}
    target:
      entity_id: input_boolean.wind_speed_warning
    action: input_boolean.turn_on
  - metadata: {}
    data:
      message: "High Wind Speed Warning "
    action: notify.mobile_app_andys_iphone15

I also created a condition card based on the pirate wind speed entity that mirrors the automation and that works fine.

Can anyone see why , and where my automation is wrong. I ran the automation to test the actions and they work just fine , so I know its in the trigger , but after several attempts at re-creating I cannot get it to work.

Help please …

Many thanks for any help

Regards

Andy

Is the “t” on the first line a cut and paste error or is it really in your automation?

Sorry , yes that’s a copy paste error

It’s not in the actual automation … oops :slight_smile:

Did you get an entry a the traces tab?

Hi, Just checked Traces and the only entry is when I manually teste the automation. So no nothing is in Traces as such.

Its very strange as the entity I am using is displaying correctly in a condition card on a test dashboard, so I dont understand why the automation trigger doesn’t work.

Just to add, I have a second automation for High Temperatures which I also updated to use the pirate weather entity and that no longer works either. Again running the automation manually produces the correct actions so its the trigger again. I think there is something about the numeric state of the entity trigger that I am not understanding …

Make sure the wind speed is measured the same way for the new service.
Check the values in the developer tools’s state section.

And I think the sensor is only updated each 30 seconds or so, which makes the for part of your trigger obsolete.

Thank you , I seem to recall something now that the value will only trigger when it goes above or below the threshold set in the trigger. So if its above 5 and below 30 the automation will only run when it goes to 5.1 or if is above 30 and reduces to 29.9. Any change in between that range wont trigger the automation - for if it triggers at 5.1 it wont then trigger at say 7.2 . Am I correct in that thinking

Checked dev state, good point to check … and amended time to 1 min

Sort of correct.
The statement is correct for above 30 and going below, but not going from above 5 to 5.1.
I think that was just a typo though. :slight_smile:
It will trigger if it goes from below 5 to over 5.

You should be able to go to the developer tools’s states tab and find your sensors.
Click on the blue text for your sensor to get it focused in the top and then change the state and click the SET STATE button.
It should then change the state, but it should at next update (usually within 30 seconds change back to the real sensor value).

Didn’t know I could do that, but in mine I cannot click the blue text , I have to right click and open in another tab ( browser differences no doubt) And finally this allowed me to get it working , Really useful tip for testing automations etc. Thank you, I appreciate the help.