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?