{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/5445","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/5445/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/5445/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/5445/events","html_url":"https://github.com/eclipse/smarthome/issues/5445","id":316817608,"number":5445,"title":"The Dimensionless dimension selection results in values with \" one\" string appended to them","user":{"login":"spikeygg","id":1015891,"avatar_url":"https://avatars3.githubusercontent.com/u/1015891?v=4","gravatar_id":"","url":"https://api.github.com/users/spikeygg","html_url":"https://github.com/spikeygg","followers_url":"https://api.github.com/users/spikeygg/followers","following_url":"https://api.github.com/users/spikeygg/following{/other_user}","gists_url":"https://api.github.com/users/spikeygg/gists{/gist_id}","starred_url":"https://api.github.com/users/spikeygg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spikeygg/subscriptions","organizations_url":"https://api.github.com/users/spikeygg/orgs","repos_url":"https://api.github.com/users/spikeygg/repos","events_url":"https://api.github.com/users/spikeygg/events{/privacy}","received_events_url":"https://api.github.com/users/spikeygg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T13:40:11Z","updated_at":"2018-04-24T09:50:50Z","closed_at":null,"author_association":"NONE","body":"I have found that when using the \"Dimensionless\" option on items that result in a Number, the resulting value is the numeric value followed by the string \" one\". This post was suggested as the result from the following forum post on the openhab forum: https://community.openhab.org/t/new-homeseer-wd200-switches-coming/39244/46. I have found that I can use the \"Area\" dimension as a replacement which will not apply any units and still allow for numerical comparisons.\r\n\r\nHere is an example from my openhab2 events.log:\r\n\r\n```\r\n2018-04-21 23:43:32.083 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from NULL to 0.87 one\r\n2018-04-21 23:43:43.487 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.87 one to 0.86 one\r\n2018-04-21 23:44:06.525 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.86 one to 0.87 one\r\n2018-04-21 23:44:29.452 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.87 one to 0.88 one\r\n2018-04-21 23:44:52.600 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.88 one to 0.87 one\r\n2018-04-21 23:45:04.150 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.87 one to 0.86 one\r\n2018-04-21 23:45:15.614 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.86 one to 0.85 one\r\n2018-04-21 23:45:27.163 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.85 one to 0.84 one\r\n```\r\n\r\n\r\nWhen I updated the dimension from \"Dimensionless\" to \"Area\" the events.log file appeared like this:\r\n```\r\n2018-04-22 21:54:07.698 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.73 one to 0.74 one\r\n2018-04-22 21:54:19.195 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.74 one to 0.73 one\r\n2018-04-22 21:54:30.659 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.73 one to 0.72 one\r\n2018-04-22 21:54:41.952 [ome.event.ItemUpdatedEvent] - Item 'ZM_Server_CPULoad' has been updated.\r\n2018-04-22 21:54:42.156 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from NULL to 0.71\r\n2018-04-22 21:54:53.865 [vent.ItemStateChangedEvent] - ZM_Server_CPULoad changed from 0.71 to 0.7\r\n\r\n```\r\n\r\nA dimensionless item should not have any units."},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/383872829","html_url":"https://github.com/eclipse/smarthome/issues/5445#issuecomment-383872829","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/5445","id":383872829,"user":{"login":"maggu2810","id":204670,"avatar_url":"https://avatars2.githubusercontent.com/u/204670?v=4","gravatar_id":"","url":"https://api.github.com/users/maggu2810","html_url":"https://github.com/maggu2810","followers_url":"https://api.github.com/users/maggu2810/followers","following_url":"https://api.github.com/users/maggu2810/following{/other_user}","gists_url":"https://api.github.com/users/maggu2810/gists{/gist_id}","starred_url":"https://api.github.com/users/maggu2810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggu2810/subscriptions","organizations_url":"https://api.github.com/users/maggu2810/orgs","repos_url":"https://api.github.com/users/maggu2810/repos","events_url":"https://api.github.com/users/maggu2810/events{/privacy}","received_events_url":"https://api.github.com/users/maggu2810/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T09:50:50Z","updated_at":"2018-04-24T09:50:50Z","author_association":"CONTRIBUTOR","body":"Sounds like a bug to me."}}
{"actor":{"display_login":"maggu2810"}}