{"action":"opened","issue":{"url":"https://api.github.com/repos/marvinroger/arduino-sonoff-dual/issues/2","repository_url":"https://api.github.com/repos/marvinroger/arduino-sonoff-dual","labels_url":"https://api.github.com/repos/marvinroger/arduino-sonoff-dual/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/marvinroger/arduino-sonoff-dual/issues/2/comments","events_url":"https://api.github.com/repos/marvinroger/arduino-sonoff-dual/issues/2/events","html_url":"https://github.com/marvinroger/arduino-sonoff-dual/issues/2","id":337244091,"node_id":"MDU6SXNzdWUzMzcyNDQwOTE=","number":2,"title":"Generate LONG_PRESS event with SonoffDual","user":{"login":"makiolo","id":6398423,"node_id":"MDQ6VXNlcjYzOTg0MjM=","avatar_url":"https://avatars1.githubusercontent.com/u/6398423?v=4","gravatar_id":"","url":"https://api.github.com/users/makiolo","html_url":"https://github.com/makiolo","followers_url":"https://api.github.com/users/makiolo/followers","following_url":"https://api.github.com/users/makiolo/following{/other_user}","gists_url":"https://api.github.com/users/makiolo/gists{/gist_id}","starred_url":"https://api.github.com/users/makiolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makiolo/subscriptions","organizations_url":"https://api.github.com/users/makiolo/orgs","repos_url":"https://api.github.com/users/makiolo/repos","events_url":"https://api.github.com/users/makiolo/events{/privacy}","received_events_url":"https://api.github.com/users/makiolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-30T21:28:30Z","updated_at":"2018-06-30T21:28:30Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI need enter in this condition:\r\n```\r\nif (buttonState == SonoffDualButton::LONG) {\r\n\t\tHomie.reset();\r\n} else if (buttonState == SonoffDualButton::SHORT && shutters.isIdle()) {\r\n```\r\nHow can generate this event from hardware ? I try obvious long press, with 5s, 10s, 15 segs ... but nothing works.\r\n\r\nThanks. Ricardo\r\n\r\n"}}
{"actor":{"display_login":"makiolo"}}