{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/519","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/519/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/519/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/pull/519","id":235083621,"number":519,"title":"Rolling Shutters with Sonoff Dual","user":{"login":"dino-de","id":7224875,"avatar_url":"https://avatars2.githubusercontent.com/u/7224875?v=4","gravatar_id":"","url":"https://api.github.com/users/dino-de","html_url":"https://github.com/dino-de","followers_url":"https://api.github.com/users/dino-de/followers","following_url":"https://api.github.com/users/dino-de/following{/other_user}","gists_url":"https://api.github.com/users/dino-de/gists{/gist_id}","starred_url":"https://api.github.com/users/dino-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dino-de/subscriptions","organizations_url":"https://api.github.com/users/dino-de/orgs","repos_url":"https://api.github.com/users/dino-de/repos","events_url":"https://api.github.com/users/dino-de/events{/privacy}","received_events_url":"https://api.github.com/users/dino-de/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-06-11T18:41:36Z","updated_at":"2017-08-15T09:14:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/pulls/519","html_url":"https://github.com/arendst/Sonoff-Tasmota/pull/519","diff_url":"https://github.com/arendst/Sonoff-Tasmota/pull/519.diff","patch_url":"https://github.com/arendst/Sonoff-Tasmota/pull/519.patch"},"body":"There were already some requests for a shutter enhancement here.\r\nI use a Sonoff Dual (or Ch4) as switch for my rolling shutters.\r\nMy shutter motors have 3 connectors: N, Motor UP, Motor down and provide internal end switches.\r\n\r\nThe code here should use not more than 300 bytes of flash space and provides this functionnality:\r\nUsing the Wemo emulation, each ON/OFF command first shuts both relays off for 10 ms, then for a period of \"pulsetime\" relay 1 (ON command) or relay 2 (OFF command) switches on.\r\nSo I can tell my echo dot \"Alexa Shutters On\" and the shutters go up.\r\nThe motor can also be controlled with buttons at the internal pin header of the Dual: UP = button0 /\r\nDOWN = button1. The top button (button2) should work as normal, i.e. toggle.\r\nAny command during pulsetime stops the motor.\r\n\r\nA new module type is defined in sonoff_template.h as \"Shutter\" (fairly the same as Sonoff Dual).\r\nSet pulsetime a bit higher than the shutter rising time (in my case 40 sec. - in web console: \"pulsetime 140\"). PowerOnState should be 0 (console: \"PowerOnState 0\") .\r\n\r\nWarning!\r\nThe code is not so much testet, I tried to avoid any side effects for the other moduls, but no one knows... "},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/322419998","html_url":"https://github.com/arendst/Sonoff-Tasmota/pull/519#issuecomment-322419998","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/519","id":322419998,"user":{"login":"tom211","id":31030868,"avatar_url":"https://avatars2.githubusercontent.com/u/31030868?v=4","gravatar_id":"","url":"https://api.github.com/users/tom211","html_url":"https://github.com/tom211","followers_url":"https://api.github.com/users/tom211/followers","following_url":"https://api.github.com/users/tom211/following{/other_user}","gists_url":"https://api.github.com/users/tom211/gists{/gist_id}","starred_url":"https://api.github.com/users/tom211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom211/subscriptions","organizations_url":"https://api.github.com/users/tom211/orgs","repos_url":"https://api.github.com/users/tom211/repos","events_url":"https://api.github.com/users/tom211/events{/privacy}","received_events_url":"https://api.github.com/users/tom211/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T09:14:39Z","updated_at":"2017-08-15T09:14:39Z","body":"I have looked at the schematics from the dual. Isn´t it possible to get both relays on when using the header for the buttons because it is connected directly to the controller that controls the relays?"}}
{"actor":{"display_login":"tom211"}}