Round sensor value

Hi, welcome. For us you be able to help you with your code, you need to format it properly, because indentation matters in yaml, and like this it is i possible to see what is there. See point 11 in this post:

Then, to get to your question, avoid device actions whenever you can:

Second, using a time based condition for this is not the best way. Home assistant is event based. So use a trigger on what could happen to need action, and not check on a time basis. It will keep home assistant needlessly busy, and it will be slow to respond instead of immediate.

Instead of rounding, it looks like you could better make use of a numerical state condition, and use e.g. below 99.5 as the condition. But I fail to see why that would be the problem here. You can always slightly adjust the bound you test for, so testing below 99.5 would do the same as rounding.

Using the automation trace will tell you what condition failed.