rule "do something on strong wind"
when
Item weather_wind_speed changed
then
if (previousState < 30|km/h && weather_wind_speed.state >= 30|km/h ) {
// do something
}
end
This results in errors like:
Script execution of rule with UID 'weather-3' failed: The name 'h' cannot be resolved to an item or type; line 23, column 31, length 1 in weather
If @rpwong’s suggestion doesn’t work try escaping the / with \/ as in "30|km\/h". If that still doesn't work you can explicitly create a QuantityType with QuamtityType.valueOf(“30 km/h”)`;