{"action":"opened","issue":{"url":"https://api.github.com/repos/kizniche/Mycodo/issues/543","repository_url":"https://api.github.com/repos/kizniche/Mycodo","labels_url":"https://api.github.com/repos/kizniche/Mycodo/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/kizniche/Mycodo/issues/543/comments","events_url":"https://api.github.com/repos/kizniche/Mycodo/issues/543/events","html_url":"https://github.com/kizniche/Mycodo/issues/543","id":368452306,"node_id":"MDU6SXNzdWUzNjg0NTIzMDY=","number":543,"title":"Winsen ZH03B Measurement","user":{"login":"kizniche","id":838427,"node_id":"MDQ6VXNlcjgzODQyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/838427?v=4","gravatar_id":"","url":"https://api.github.com/users/kizniche","html_url":"https://github.com/kizniche","followers_url":"https://api.github.com/users/kizniche/followers","following_url":"https://api.github.com/users/kizniche/following{/other_user}","gists_url":"https://api.github.com/users/kizniche/gists{/gist_id}","starred_url":"https://api.github.com/users/kizniche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kizniche/subscriptions","organizations_url":"https://api.github.com/users/kizniche/orgs","repos_url":"https://api.github.com/users/kizniche/repos","events_url":"https://api.github.com/users/kizniche/events{/privacy}","received_events_url":"https://api.github.com/users/kizniche/received_events","type":"User","site_admin":false},"labels":[{"id":174185310,"node_id":"MDU6TGFiZWwxNzQxODUzMTA=","url":"https://api.github.com/repos/kizniche/Mycodo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-10T00:49:22Z","updated_at":"2018-10-10T00:49:22Z","closed_at":null,"author_association":"OWNER","body":"With the latest code ([ZH03B Module](https://github.com/kizniche/Mycodo/blob/60136a04284392ce54496f21faaf7fd4c5f5637d/mycodo/inputs/winsen_zh03b.py)), I receive an exception. The sensor was working properly, then suddenly measurements stopped. I've attempted to execute each function of the class, however I cannot seem to produce a response (even with the fan stop/start commands).\r\n\r\nException:\r\n\r\n```\r\npi@tango:~/Mycodo $ env/bin/python ./mycodo/inputs/winsen_zh03b.py \r\nReading sample\r\nException while reading\r\nTraceback (most recent call last):\r\n  File \"./mycodo/inputs/winsen_zh03b.py\", line 136, in get_measurement\r\n    pm_1_0, pm_2_5, pm_10_0 = self.QAReadSample()\r\n  File \"./mycodo/inputs/winsen_zh03b.py\", line 214, in QAReadSample\r\n    PM25 = int(self.HexToByte(((self.binascii.hexlify(self.ser.read(2))).hex())), 16)\r\nValueError: invalid literal for int() with base 16: ''\r\nTraceback (most recent call last):\r\n  File \"./mycodo/inputs/winsen_zh03b.py\", line 270, in <module>\r\n    print(\"Channel 0: {}\".format(ads.next()))\r\n  File \"./mycodo/inputs/winsen_zh03b.py\", line 95, in next\r\n    raise StopIteration  # required\r\nStopIteration\r\n```"}}
{"actor":{"display_login":"kizniche"}}