[SOLVED] Could not cast wattage to DecimalType or Number for comparison?

Not sure you are giving enough info…for example, what is your item definition for mydevice, it may also help to post your complete rule file, information about your system, etc (see here: How to ask a good question / Help Us Help You).
But one thing sticks out, mydevice.state is reported as 94.12 W this looks like you are using the QuantityType feature or your state is simply a string…