{"action":"created","issue":{"url":"https://api.github.com/repos/tobof/openhab2-addons/issues/8","repository_url":"https://api.github.com/repos/tobof/openhab2-addons","labels_url":"https://api.github.com/repos/tobof/openhab2-addons/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/tobof/openhab2-addons/issues/8/comments","events_url":"https://api.github.com/repos/tobof/openhab2-addons/issues/8/events","html_url":"https://github.com/tobof/openhab2-addons/issues/8","id":140315245,"number":8,"title":"Variable types missing (V_VAR1...) and why readOnly=\"true\"","user":{"login":"gnalbandian","id":11529634,"avatar_url":"https://avatars.githubusercontent.com/u/11529634?v=3","gravatar_id":"","url":"https://api.github.com/users/gnalbandian","html_url":"https://github.com/gnalbandian","followers_url":"https://api.github.com/users/gnalbandian/followers","following_url":"https://api.github.com/users/gnalbandian/following{/other_user}","gists_url":"https://api.github.com/users/gnalbandian/gists{/gist_id}","starred_url":"https://api.github.com/users/gnalbandian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnalbandian/subscriptions","organizations_url":"https://api.github.com/users/gnalbandian/orgs","repos_url":"https://api.github.com/users/gnalbandian/repos","events_url":"https://api.github.com/users/gnalbandian/events{/privacy}","received_events_url":"https://api.github.com/users/gnalbandian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-11T23:11:29Z","updated_at":"2016-03-22T16:20:31Z","closed_at":null,"body":"Hello.\r\n\r\nI am dealing with a sensor that requests a numeric value from OH2. Unfortunatelly, the only item type I can use to link the channel from where the node makes its request, is a dimmer type because all the other variables are read only.\r\n\r\n```\r\n <channel-type id=\"temp-channel\">\r\n        <item-type>Number</item-type>\r\n        <label>Temperature</label>\r\n        <description>MySensors Temperature Channel</description>\r\n        <category>Temperature</category>\r\n        <state pattern=\"%.1f °C\" readOnly=\"true\"></state>\r\n    </channel-type>\r\n```\r\n\r\nIs there any reason for this? Why wouldn't be possible for a node to ask for a temperature for example?\r\nI have found that when I set the type as temperature or other numeric tipe variables, the payload sent out has '0' where it should have the desired value.\r\n\r\nAnother thing I noticed, is the lack of variables V_VAR1, V_VAR2...that are defined at MySensors variable types. Is there any reason to avoid this type of variables.\r\n\r\nOnce again, I appreciate very much the effort you have put in this binding. It really works greats.\r\nHope we can add the mentioned features.\r\nRegards.\r\nGonzalo"},"comment":{"url":"https://api.github.com/repos/tobof/openhab2-addons/issues/comments/199888225","html_url":"https://github.com/tobof/openhab2-addons/issues/8#issuecomment-199888225","issue_url":"https://api.github.com/repos/tobof/openhab2-addons/issues/8","id":199888225,"user":{"login":"tobof","id":16863504,"avatar_url":"https://avatars.githubusercontent.com/u/16863504?v=3","gravatar_id":"","url":"https://api.github.com/users/tobof","html_url":"https://github.com/tobof","followers_url":"https://api.github.com/users/tobof/followers","following_url":"https://api.github.com/users/tobof/following{/other_user}","gists_url":"https://api.github.com/users/tobof/gists{/gist_id}","starred_url":"https://api.github.com/users/tobof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobof/subscriptions","organizations_url":"https://api.github.com/users/tobof/orgs","repos_url":"https://api.github.com/users/tobof/repos","events_url":"https://api.github.com/users/tobof/events{/privacy}","received_events_url":"https://api.github.com/users/tobof/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T16:20:31Z","updated_at":"2016-03-22T16:20:31Z","body":"Adding the variables V_VAR1, V_VAR2 ... is no problem!\r\n\r\nCurrently it is not possible to answer an request send to the OH2 binding due to a limitation of the API. I'm not able to get the value of an item. \r\n\r\nHere is the answer of the core developer:\r\nhttps://groups.google.com/forum/#!topic/openhab2/QbmaSwC59l0\r\n\r\nSo we need to save the value by ourself, which is harder as it sounds, as all items are handled by the same handler and the handler handles all types of data (decimal, string, percentage ...).\r\n\r\n"}}