Cannot be processed as a number - Warning

Firstly, please post as correctly-formatted YAML not screenshots.

I suspect the problem is your trigger (“When”). The entity in the top box should be the sensor, but I think (can’t tell without the YAML) that you’ve chosen the automation itself, which is either “on” or “off”, neither of which can be compared with 15.