{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/6612","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/6612/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/6612/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/6612/events","html_url":"https://github.com/eclipse/smarthome/issues/6612","id":386500139,"node_id":"MDU6SXNzdWUzODY1MDAxMzk=","number":6612,"title":"[Homematic] Can't convert type QuantityType with value to FLOAT","user":{"login":"Kavakuo","id":7912480,"node_id":"MDQ6VXNlcjc5MTI0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/7912480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kavakuo","html_url":"https://github.com/Kavakuo","followers_url":"https://api.github.com/users/Kavakuo/followers","following_url":"https://api.github.com/users/Kavakuo/following{/other_user}","gists_url":"https://api.github.com/users/Kavakuo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kavakuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kavakuo/subscriptions","organizations_url":"https://api.github.com/users/Kavakuo/orgs","repos_url":"https://api.github.com/users/Kavakuo/repos","events_url":"https://api.github.com/users/Kavakuo/events{/privacy}","received_events_url":"https://api.github.com/users/Kavakuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-01T21:36:31Z","updated_at":"2018-12-04T18:33:00Z","closed_at":null,"author_association":"NONE","body":"I am currently unable to set a temperature for my homematic items on the last two OpenHAB milestone builds (M7, M6).\r\nM6 includes everything from e7b0c783e8bae3f0467718748cff1220d508cdbb to 0b476cb49b4e1ffe13aa7d457846b135bb069c24\r\nM7 includes everything from f25eae514e59d56f782e8787ee30686956cff8a1 to 369582877ce4c1adeed22c6de0efbc7c37b55244\r\n\r\nThe M5 milestone build as well as the binding shipped with OpenHAB 2.3 worked with the following setup: \r\n\r\nItem definition:\r\n```\r\nNumber HM_Wohnzimmer_RTherm_SetTemp \"Set Temperature\"    (gTemperatureSet)  {channel=\"homematic:HM-CC-RT-DN:ccu:OEQ2084718:4#SET_TEMPERATURE\"}\r\n```\r\n\r\nRule:\r\n```\r\nrule \"TestSwitch\"\r\nwhen\r\n    Item TestSwitch changed to ON\r\nthen\r\n    TestSwitch.sendCommand(OFF)\r\n    var test = 20.5\r\n    logInfo(\"Test\", \"set \" + test.toString + \" \" + test.class.toString)\r\n    logInfo(\"Test\", \"get \" + HM_Wohnzimmer_RTherm_SetTemp.state.toString + \" \" + HM_Wohnzimmer_RTherm_SetTemp.state.class.toString)\r\n    HM_Wohnzimmer_RTherm_SetTemp.sendCommand(test);\r\nend\r\n```\r\n\r\nLog output (no error):\r\n```\r\n2018-12-01 21:13:11.626 [INFO ] [.eclipse.smarthome.model.script.Test] - set 20.5 class java.lang.Double\r\n2018-12-01 21:13:11.641 [INFO ] [.eclipse.smarthome.model.script.Test] - get 21.5 class org.eclipse.smarthome.core.library.types.DecimalType\r\n```\r\n\r\n\r\n\r\n**M7, M6, M5 fail with the following setup:**\r\nItem definition:\r\n\r\n    Number:Temperature HM_Wohnzimmer_RTherm_SetTemp \"Set Temperature\"    (gTemperatureSet)  {channel=\"homematic:HM-CC-RT-DN:ccu:OEQ2084718:4#SET_TEMPERATURE\"}\r\n\r\nRule:\r\n```\r\nrule \"TestSwitch\"\r\nwhen\r\n    Item TestSwitch changed to ON\r\nthen\r\n    TestSwitch.sendCommand(OFF)\r\n    var test = 20.5|°C\r\n    logInfo(\"Test\", \"set \" + test.toString + \" \" + test.class.toString)\r\n    logInfo(\"Test\", \"get \" + HM_Wohnzimmer_RTherm_SetTemp.state.toString + \" \" + HM_Wohnzimmer_RTherm_SetTemp.state.class.toString)\r\n    HM_Wohnzimmer_RTherm_SetTemp.sendCommand(test);\r\nend\r\n````\r\nLog output:\r\n```\r\n2018-12-01 21:08:53.026 [INFO ] [.eclipse.smarthome.model.script.Test] - set 20.5 °C class org.eclipse.smarthome.core.library.types.QuantityType\r\n2018-12-01 21:08:53.035 [INFO ] [.eclipse.smarthome.model.script.Test] - get 20.5 °C class org.eclipse.smarthome.core.library.types.QuantityType\r\n2018-12-01 21:08:53.055 [WARN ] [ematic.handler.HomematicThingHandler] - Can't convert type QuantityType with value '20.5 °C' to FLOAT value with DecimalTypeConverter for 'OEQ2084718:4#SET_TEMPERATURE', please check the item type and the commands in your scripts\r\n```\r\n\r\nI installed the homematic binding included in the M5 build of OpenHAB into an M7 OpenHAB installation and everything worked as before. So the issue is definitely in the binding and not in other components of OpenHAB. I tried many things to get the newer versions of the homematic binding working, passing float, double, DecimalType, QuantityType values as argument to `sendCommand` and use a `Number` or `Number:Temperature` as item definition. Nothing worked so far. \r\n\r\nAm I using the binding in a wrong way or is this currently a bug?\r\n\r\nFor reference the thread in the OpenHAB forum: [https://community.openhab.org/t/homematic-quantitytype-in-m6-build-problem/57432](https://community.openhab.org/t/homematic-quantitytype-in-m6-build-problem/57432)"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/444207537","html_url":"https://github.com/eclipse/smarthome/issues/6612#issuecomment-444207537","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/6612","id":444207537,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDIwNzUzNw==","user":{"login":"MHerbst","id":616792,"node_id":"MDQ6VXNlcjYxNjc5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/616792?v=4","gravatar_id":"","url":"https://api.github.com/users/MHerbst","html_url":"https://github.com/MHerbst","followers_url":"https://api.github.com/users/MHerbst/followers","following_url":"https://api.github.com/users/MHerbst/following{/other_user}","gists_url":"https://api.github.com/users/MHerbst/gists{/gist_id}","starred_url":"https://api.github.com/users/MHerbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHerbst/subscriptions","organizations_url":"https://api.github.com/users/MHerbst/orgs","repos_url":"https://api.github.com/users/MHerbst/repos","events_url":"https://api.github.com/users/MHerbst/events{/privacy}","received_events_url":"https://api.github.com/users/MHerbst/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T18:33:00Z","updated_at":"2018-12-04T18:33:00Z","author_association":"CONTRIBUTOR","body":"Just tried the latest openHAB build from today and with my configuration (i.e. without any rules regarding temperatures) it works fine.\r\n\r\nI also tried it with rules and it worked correctly with and without unit.\r\n\r\nFirst test with unit:\r\n```\r\n   var newValue = 19.5|\"°C\"\r\n   HM_Kueche_Temp_Set.sendCommand(newValue)\r\n```\r\nLog messages:\r\n```\r\n19:26:36.977 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'HM_Kueche_Temp_Set' received command 19.5 °C\r\n19:26:36.978 [INFO ] [arthome.event.ItemStatePredictedEvent] - HM_Kueche_Temp_Set predicted to become 19.5 °C\r\n19:26:36.980 [INFO ] [smarthome.event.ItemStateChangedEvent] - HM_Kueche_Temp_Set changed from 18.00 to 19.5 °C\r\n```\r\nRemark: I had to use quotes arount the unit because without them I got an error (seems to be a new bug).\r\n\r\nWithout unit:\r\n```\r\n   var newValue = 19.5\r\n   HM_Kueche_Temp_Set.sendCommand(newValue)\r\n```\r\n\r\n```\r\n19:30:00.188 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'HM_Kueche_Temp_Set' received command 19.5\r\n19:30:00.192 [INFO ] [arthome.event.ItemStatePredictedEvent] - HM_Kueche_Temp_Set predicted to become 19.5\r\n19:30:00.195 [INFO ] [smarthome.event.ItemStateChangedEvent] - HM_Kueche_Temp_Set changed from 18.00 to 19.5\r\n```\r\nEverything seems to work correctly. \r\n\r\nBinding version is now: 0.10.0.201812032218"}}
{"actor":{"display_login":"MHerbst"}}