JSON Transformation with tuples won't work AND how-to-convert from String-to-Number [solved]

Yes! Now it got it.
This is my working rule-file:

var Number conversion
var String get_stromzaehlerteststate 
 rule "conversion"
when
  Item stromzaehlertest changed
then
  get_stromzaehlerteststate = stromzaehlertest.state.toString();
 conversion = Integer.valueOf(get_stromzaehlerteststate);
  Stromzaehler.postUpdate(conversion)
end

And my item look like this:

Number Stromzaehler "Socket [%.0f W]" <energy> (All)

The important thing was the “f” in the [%.0f W] and that I have to get the stromzaehlertest.state.toString() in the rule. Without the last thing the error doesn’t go away in the SmartHome Designer.
Anyway - it works.

Many thanks to you, Rich! :grinning: