{"action":"created","issue":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/786","labels_url":"https://api.github.com/repos/pimatic/pimatic/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/pimatic/pimatic/issues/786/comments","events_url":"https://api.github.com/repos/pimatic/pimatic/issues/786/events","html_url":"https://github.com/pimatic/pimatic/issues/786","id":126118558,"number":786,"title":"[shell-execute]  [pimatic-shell-execute]: ShellSwitch: stderr output from getStateCommand for Samsung TV","user":{"login":"p4co86","id":7631636,"avatar_url":"https://avatars.githubusercontent.com/u/7631636?v=3","gravatar_id":"","url":"https://api.github.com/users/p4co86","html_url":"https://github.com/p4co86","followers_url":"https://api.github.com/users/p4co86/followers","following_url":"https://api.github.com/users/p4co86/following{/other_user}","gists_url":"https://api.github.com/users/p4co86/gists{/gist_id}","starred_url":"https://api.github.com/users/p4co86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p4co86/subscriptions","organizations_url":"https://api.github.com/users/p4co86/orgs","repos_url":"https://api.github.com/users/p4co86/repos","events_url":"https://api.github.com/users/p4co86/events{/privacy}","received_events_url":"https://api.github.com/users/p4co86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T07:44:37Z","updated_at":"2016-01-15T15:15:48Z","closed_at":null,"body":"Good morning. \r\n\r\ni get this error message when i stop my kwhmeter service.\r\n```\r\n [pimatic-shell-execute]: ShellSwitch: stderr output from getStateCommand for Samsung TV: Terminated\r\ngrep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)\r\n```\r\nFirst of all, i read my kwh meter with an arduino and write the data to a file.after that i have a logreader device.\r\n\r\nthis is my python programm to read the datat from the arduino.\r\n```\r\n#!/usr/bin/env python\r\n\r\n\r\nimport time\r\nimport serial\r\nser = serial.Serial('/dev/serial/by-id/usb-Arduino_LLC_Arduino_Leonardo-if00', 9600)\r\n\r\nwhile 1:\r\n\r\n    data = ser.readline()\r\n    f = open(\"/root/log/kWhmeter.log\",\"a\")\r\n    f.write(data)\r\n    f.close()\r\n```\r\n\r\n\r\nBut sometimes i have the problem, that the service is still alive, but the arduino sends no datat via serial to the logfile. \r\n\r\ni have this thing installed on a rpi1 wich works perfectly without any error, but on the rpi2 i get the described error.\r\n\r\nwhen i then stop the service on the rpi2 i get the error message wich i describe at the beginning.\r\n\r\nThe Samsung thing is a shell switch.\r\n\r\nBoth systems run jessie\r\n\r\nThanks for any help !"},"comment":{"url":"https://api.github.com/repos/pimatic/pimatic/issues/comments/171988274","html_url":"https://github.com/pimatic/pimatic/issues/786#issuecomment-171988274","issue_url":"https://api.github.com/repos/pimatic/pimatic/issues/786","id":171988274,"user":{"login":"mwittig","id":6117742,"avatar_url":"https://avatars.githubusercontent.com/u/6117742?v=3","gravatar_id":"","url":"https://api.github.com/users/mwittig","html_url":"https://github.com/mwittig","followers_url":"https://api.github.com/users/mwittig/followers","following_url":"https://api.github.com/users/mwittig/following{/other_user}","gists_url":"https://api.github.com/users/mwittig/gists{/gist_id}","starred_url":"https://api.github.com/users/mwittig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwittig/subscriptions","organizations_url":"https://api.github.com/users/mwittig/orgs","repos_url":"https://api.github.com/users/mwittig/repos","events_url":"https://api.github.com/users/mwittig/events{/privacy}","received_events_url":"https://api.github.com/users/mwittig/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T15:15:48Z","updated_at":"2016-01-15T15:15:48Z","body":"Getting a broken pipe is rare but not necessarily an error. May be the following post gives some hints on how to fix it in your case - http://superuser.com/questions/554855/how-can-i-fix-a-broken-pipe-error"}}