{"action":"closed","issue":{"url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib/issues/497","repository_url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib","labels_url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib/issues/497/comments","events_url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib/issues/497/events","html_url":"https://github.com/telefonicaid/iotagent-node-lib/issues/497","id":185614987,"number":497,"title":"[Feature] Cast needed for transformation plugin ","user":{"login":"XavierVal","id":4479644,"avatar_url":"https://avatars.githubusercontent.com/u/4479644?v=3","gravatar_id":"","url":"https://api.github.com/users/XavierVal","html_url":"https://github.com/XavierVal","followers_url":"https://api.github.com/users/XavierVal/followers","following_url":"https://api.github.com/users/XavierVal/following{/other_user}","gists_url":"https://api.github.com/users/XavierVal/gists{/gist_id}","starred_url":"https://api.github.com/users/XavierVal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XavierVal/subscriptions","organizations_url":"https://api.github.com/users/XavierVal/orgs","repos_url":"https://api.github.com/users/XavierVal/repos","events_url":"https://api.github.com/users/XavierVal/events{/privacy}","received_events_url":"https://api.github.com/users/XavierVal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/iotagent-node-lib/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T09:18:55Z","updated_at":"2016-10-27T09:52:36Z","closed_at":"2016-10-27T09:52:36Z","body":"There are scenarios where is needed to be casted to string or Int prior the transformation plugin operation.\r\n\r\n{\"devices\": [{\"attributes\": [{\"expression\": \"${@humedad + 0.001}\", **\"cast\":\"Number\"**, \"type\": \"percent\", \"name\": \"humidity\", \"object_id\": \"h\"}], \"entity_type\": \"sensor\", \"protocol\": \"IoTA-UL\", \"entity_name\": \"e0120104\", \"device_id\": \"dev0120104\"}]}'\r\n"}}
{"actor":{"display_login":"XavierVal"}}