{"action":"opened","issue":{"url":"https://api.github.com/repos/mwittig/pimatic-filter/issues/2","labels_url":"https://api.github.com/repos/mwittig/pimatic-filter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mwittig/pimatic-filter/issues/2/comments","events_url":"https://api.github.com/repos/mwittig/pimatic-filter/issues/2/events","html_url":"https://github.com/mwittig/pimatic-filter/issues/2","id":120553752,"number":2,"title":"Pimatic-filter errors not solved","user":{"login":"edautz","id":11003867,"avatar_url":"https://avatars.githubusercontent.com/u/11003867?v=3","gravatar_id":"","url":"https://api.github.com/users/edautz","html_url":"https://github.com/edautz","followers_url":"https://api.github.com/users/edautz/followers","following_url":"https://api.github.com/users/edautz/following{/other_user}","gists_url":"https://api.github.com/users/edautz/gists{/gist_id}","starred_url":"https://api.github.com/users/edautz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edautz/subscriptions","organizations_url":"https://api.github.com/users/edautz/orgs","repos_url":"https://api.github.com/users/edautz/repos","events_url":"https://api.github.com/users/edautz/events{/privacy}","received_events_url":"https://api.github.com/users/edautz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-05T13:18:05Z","updated_at":"2015-12-05T13:18:05Z","closed_at":null,"body":"I did a upgrade to pimatic-filter 0.8.4 upgrade and changed the type of the mysensors devices to number.\r\n\r\n    {\r\n      \"id\": \"MultiSensorWoonkamer\",\r\n      \"name\": \"Multi Sensor Woonkamer\",\r\n      \"class\": \"MySensorsMulti\",\r\n      \"attributes\": [\r\n        {\r\n          \"name\": \"Vochtigheid\",\r\n          \"nodeid\": 9,\r\n          \"sensorid\": 0,\r\n          \"type\": \"number\",\r\n          \"acronym\": \"Vochtigheid: \",\r\n          \"unit\": \"%\"\r\n        },\r\n        {\r\n          \"name\": \"Temperatuur\",\r\n          \"nodeid\": 9,\r\n          \"sensorid\": 1,\r\n          \"type\": \"number\",\r\n          \"acronym\": \"Temperatuur: \",\r\n          \"unit\": \"Â°C\"\r\n        },\r\n        {\r\n          \"name\": \"Druk\",\r\n          \"nodeid\": 9,\r\n          \"sensorid\": 2,\r\n          \"sensortype\": 4,\r\n          \"type\": \"number\",\r\n          \"acronym\": \"Druk: \",\r\n          \"unit\": \"hPa\"\r\n        },\r\n        {\r\n          \"name\": \"LichtsterkteSensor\",\r\n          \"nodeid\": 9,\r\n          \"sensorid\": 3,\r\n          \"type\": \"number\",\r\n          \"acronym\": \"Lichtsterkte: \",\r\n          \"unit\": \"Lux\"\r\n        },\r\n        {\r\n          \"name\": \"Voorspelling\",\r\n          \"nodeid\": 9,\r\n          \"sensorid\": 2,\r\n          \"sensortype\": 5,\r\n          \"type\": \"string\",\r\n          \"acronym\": \"Voorspelling: \"\r\n        }\r\n      ]\r\n    },\r\n    {\r\n      \"id\": \"MultiSensorWoonkamerVochtigheidFilter\",\r\n      \"name\": \"Multi SensorWoonkamer Vochtigheid Filter\",\r\n      \"class\": \"SimpleTruncatedMeanFilter\",\r\n      \"output\": {\r\n        \"name\": \"Vochtigheid\",\r\n        \"expression\": \"$MultiSensorWoonkamer.Vochtigheid\",\r\n        \"acronym\": \"Vochtigheid: \",\r\n        \"type\": \"number\",\r\n        \"unit\": \"%\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": \"MultiSensorWoonkamerTemperatuurFilter\",\r\n      \"name\": \"Multi SensorWoonkamer Temperatuur Filter\",\r\n      \"class\": \"SimpleTruncatedMeanFilter\",\r\n      \"output\": {\r\n        \"name\": \"Vochtigheid\",\r\n        \"expression\": \"$MultiSensorWoonkamer.Temperatuur\",\r\n        \"acronym\": \"Temperatuur: \",\r\n        \"type\": \"number\",\r\n        \"unit\": \"Â°C\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": \"MultiSensorWoonkamerDrukFilter\",\r\n      \"name\": \"Multi SensorWoonkamer Druk Filter\",\r\n      \"class\": \"SimpleTruncatedMeanFilter\",\r\n      \"output\": {\r\n        \"name\": \"Druk\",\r\n        \"expression\": \"$MultiSensorWoonkamer.Temperatuur\",\r\n        \"acronym\": \"Druk: \",\r\n        \"type\": \"number\",\r\n        \"unit\": \"hPa\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": \"MultiSensorWoonkamerLichtsterkteSensorFilter\",\r\n      \"name\": \"Multi SensorWoonkamer LichtsterkteSensor Filter\",\r\n      \"class\": \"SimpleTruncatedMeanFilter\",\r\n      \"output\": {\r\n        \"name\": \"Druk\",\r\n        \"expression\": \"$MultiSensorWoonkamer.LichtsterkteSensor\",\r\n        \"acronym\": \"Lichtsterkte: \",\r\n        \"type\": \"number\",\r\n        \"unit\": \"Lux\"\r\n      }\r\n    },\r\n\r\n\r\nBut the errors remain.\r\n\r\nerror [pimatic-filter]: Error on device MultiSensorWoonkamerLichtsterkteSensorFilter: Could not parse expression\r\n14:05:42error [pimatic-filter]: Error on device MultiSensorWoonkamerDrukFilter: Could not parse expression\r\n14:05:42error [pimatic-filter]: Error on device MultiSensorWoonkamerTemperatuurFilter: Could not parse expression\r\n14:05:42error [pimatic-filter]: Error on device MultiSensorWoonkamerVochtigheidFilter: Could not parse expression\r\n\r\nand\r\n\r\nwarn [pimatic]: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!\r\n14:17:29error [pimatic]: A uncaught exception occured: TypeError: Cannot read property 'value' of undefined at SimpleTruncatedMeanFilter.Device.toJson (/usr/local/pimatic-app/node_modules/pimatic/lib/devices.coffee:172:30) at Framework.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:37) at Namespace.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:35) at Namespace.EventEmitter.emit (events.js:95:17) at Namespace.emit (/usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:205:10) at /usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:172:14 at process._tickCallback (node.js:415:13) This is most probably a bug in pimatic or in a module, please report it!\r\n14:16:46warn [pimatic]: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!\r\n14:16:46error [pimatic]: A uncaught exception occured: TypeError: Cannot read property 'value' of undefined at SimpleTruncatedMeanFilter.Device.toJson (/usr/local/pimatic-app/node_modules/pimatic/lib/devices.coffee:172:30) at Framework.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:37) at Namespace.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:35) at Namespace.EventEmitter.emit (events.js:95:17) at Namespace.emit (/usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:205:10) at /usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:172:14 at process._tickCallback (node.js:415:13) This is most probably a bug in pimatic or in a module, please report it!\r\n14:11:06warn [pimatic]: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!\r\n14:11:06error [pimatic]: A uncaught exception occured: TypeError: Cannot read property 'value' of undefined at SimpleTruncatedMeanFilter.Device.toJson (/usr/local/pimatic-app/node_modules/pimatic/lib/devices.coffee:172:30) at Framework.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:37) at Namespace.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:35) at Namespace.EventEmitter.emit (events.js:95:17) at Namespace.emit (/usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:205:10) at /usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:172:14 at process._tickCallback (node.js:415:13) This is most probably a bug in pimatic or in a module, please report it!\r\n14:11:03warn [pimatic]: Keeping pimatic alive, but could be in an undefined state, please restart pimatic so soon as possible!\r\n14:11:02error [pimatic]: A uncaught exception occured: TypeError: Cannot read property 'value' of undefined at SimpleTruncatedMeanFilter.Device.toJson (/usr/local/pimatic-app/node_modules/pimatic/lib/devices.coffee:172:30) at Framework.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:37) at Namespace.<anonymous> (/usr/local/pimatic-app/node_modules/pimatic/lib/framework.coffee:492:35) at Namespace.EventEmitter.emit (events.js:95:17) at Namespace.emit (/usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:205:10) at /usr/local/pimatic-app/node_modules/pimatic/node_modules/socket.io/lib/namespace.js:172:14 at process._tickCallback (node.js:415:13) This is most probably a bug in pimatic or in a module, please report it!"}}