Tado target temperature via setpoint throws cast error

When trying to change the target temperature with the Android or IOS app this change does not persist but the logs show “DecimalType cannot be cast to QuantityType”. Changing the value via the website does work fine.

This is how my sitemap looks like:
Setpoint item=Wohnzimmer_TargetTemperature label="Ziel-Temperatur [%.0f °C]" minValue=5 maxValue=25 icon="temperature" valuecolor=[>=30="red", >=25="orange", >=15="green", 0="white", <15="blue"]

Logs from Openhab:

2018-11-18 21:19:09.808 [ome.event.ItemCommandEvent] - Item 'Wohnzimmer_TargetTemperature' received command 25                  
                                                                                                                                
==> openhab.log <==                                                                                                             
2018-11-18 21:19:09.809 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.ha
ndleCommand()' on 'org.openhab.binding.tado.handler.TadoZoneHandler@12207c0': org.eclipse.smarthome.core.library.types.DecimalTy
pe cannot be cast to org.eclipse.smarthome.core.library.types.QuantityType                                                      
java.lang.ClassCastException: org.eclipse.smarthome.core.library.types.DecimalType cannot be cast to org.eclipse.smarthome.core.
library.types.QuantityType                                                                                                      
        at org.openhab.binding.tado.handler.TadoZoneHandler.handleCommand(TadoZoneHandler.java:121) [196:org.openhab.binding.tad
o:2.3.0]                                                                                                                        
        at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source) ~[?:?]                                                 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]                         
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]                                                              
        at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153)
 [101:org.eclipse.smarthome.core:0.10.0.oh230]                                                                                  
        at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [101:org.eclip
se.smarthome.core:0.10.0.oh230]                                                                                                 
        at com.sun.proxy.$Proxy130.handleCommand(Unknown Source) [196:org.openhab.binding.tado:2.3.0]                           
        at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [10
8:org.eclipse.smarthome.core.thing:0.10.0.oh230]                                                                                
        at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:4
9) [108:org.eclipse.smarthome.core.thing:0.10.0.oh230]                                                                          
        at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source) ~[?:?]                                                 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]                         
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]                                                              
        at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153)
 [101:org.eclipse.smarthome.core:0.10.0.oh230]                                                                                  
        at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0
.oh230]                                                                                                                         
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]                                                       
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]                                
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]                                
        at java.lang.Thread.run(Thread.java:748) [?:?]                                                                          

Does anybody have an idea what I’m doing wrong?

What is the item definition, please?

I have created them via the Paper UI, so they look like this:

 "Wohnzimmer_TargetTemperature": {
    "class": "org.eclipse.smarthome.core.items.ManagedItemProvider$PersistedItem",
    "value": {
      "groupNames": [
        "Wohnzimmer"
      ],
      "itemType": "Number:Temperature",
      "label": "Target Temperature",
      "category": "Temperature"
    }
  },

What do you mean by that? BasicUI and ClassicUI or REST Api?
It could be a bug in the apps related to the Setpoint element

Sorry, should have been more clear. I meant the BasicUI in fact when I wrote website.

It is odd I must admit
Try removing the °C fron the label in the sitemap

Setpoint item=Wohnzimmer_TargetTemperature label="Ziel-Temperatur [%.0f]" minValue=5 maxValue=25 icon="temperature" valuecolor=[>=30="red", >=25="orange", >=15="green", 0="white", <15="blue"]

Unfortunately that doesn’t seem to make a difference. The same error still occurs.
I have also tried to resolve the problem by removing the Temperpatur type from the item, but that didn’T make a difference as well.

Try this:

Remove the link to the item in the paperUI

Create an *.items file in the items folder
and declare you item like this:

Number:Temperature Wohnzimmer_TargetTemperature "Ziel-Temperatur [%.0f °C]" { channel="XXXXXXXX" }

Where the channel reference is from the paperUI

Then change your sitemap as follow:

Setpoint item=Wohnzimmer_TargetTemperature minValue=5 maxValue=25 icon="temperature" valuecolor=[>=30="red", >=25="orange", >=15="green", 0="white", <15="blue"]

Maybe? this is a problem with the binding?

See: Tado Binding doesn't accept command via REST - #10 by rlkoshak
Also: openhab2-addons/addons/binding/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/handler/TadoZoneHandler.java at 928db7e3e9102f848995b3a8e8215c11c6f947af · openhab/openhab2-addons · GitHub

Which OH2 release are you running @Haves ?