{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1221","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1221/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1221/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1221/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/1221","id":275196558,"number":1221,"title":"SwitchMode question for toggling wall switches","user":{"login":"danielsoar","id":6870343,"avatar_url":"https://avatars2.githubusercontent.com/u/6870343?v=4","gravatar_id":"","url":"https://api.github.com/users/danielsoar","html_url":"https://github.com/danielsoar","followers_url":"https://api.github.com/users/danielsoar/followers","following_url":"https://api.github.com/users/danielsoar/following{/other_user}","gists_url":"https://api.github.com/users/danielsoar/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsoar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsoar/subscriptions","organizations_url":"https://api.github.com/users/danielsoar/orgs","repos_url":"https://api.github.com/users/danielsoar/repos","events_url":"https://api.github.com/users/danielsoar/events{/privacy}","received_events_url":"https://api.github.com/users/danielsoar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-19T21:59:40Z","updated_at":"2017-11-21T12:03:42Z","closed_at":null,"author_association":"NONE","body":"Hi Guys,  Love Tasmota but have an issue.\r\n\r\nI have played with switchmode and currently have it set to:\r\n\r\n#define SWITCH_MODE            FOLLOW    \r\n\r\nthe doco in [switchmode doco](https://github.com/arendst/Sonoff-Tasmota/wiki/Understanding-SwitchMode-and-SwitchTopic) has not been updated to include pushbuttonhold/_INV but from reading in here I think that just includes a long press for second button input back to MQTT to perform a second action.\r\n\r\nMy issue is that I have physical toggle switches around the house connected to the sonoff boxes and the mqtt can toggle a state change on the relay from any state the physical switch was in, but to get the lights to turn on from the switch again once its changed state from software if the software does not match the switch state anymore I need to flick the switch twice to get it to 'catch up' again.  Bad terminology I know but hopefully you get my point.\r\n\r\nThis is not helping the WAF (Wife acceptance factor) of my home automation system.  Since the home automation system knows which state it is in, is it possible to turn a toggle switch into a pushbutton by monitoring the edge change high to low OR low to high and using that as a PB? \r\n\r\nI really didn't want to change all the switches in the house to bell press if possible as I have custom slim wall plates that fit on architraves so I wanted to leave the switches as they were if possible for aesthetic reasons.  \r\n\r\nI was hoping that either this is already implemented and I have just missed how to achieve it?\r\n\r\nIf not implemented yet, perhaps it is not too complex to implement and it would help alot of people who want to use this for lighting allowing them to use their current hardware switches assigned to a GPIO as a pushbutton that does edge detection.\r\n\r\nReally appreciate the help and sorry if this is a double up question."},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/346006639","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/1221#issuecomment-346006639","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1221","id":346006639,"user":{"login":"arendst","id":11044339,"avatar_url":"https://avatars3.githubusercontent.com/u/11044339?v=4","gravatar_id":"","url":"https://api.github.com/users/arendst","html_url":"https://github.com/arendst","followers_url":"https://api.github.com/users/arendst/followers","following_url":"https://api.github.com/users/arendst/following{/other_user}","gists_url":"https://api.github.com/users/arendst/gists{/gist_id}","starred_url":"https://api.github.com/users/arendst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arendst/subscriptions","organizations_url":"https://api.github.com/users/arendst/orgs","repos_url":"https://api.github.com/users/arendst/repos","events_url":"https://api.github.com/users/arendst/events{/privacy}","received_events_url":"https://api.github.com/users/arendst/received_events","type":"User","site_admin":false},"created_at":"2017-11-21T12:03:42Z","updated_at":"2017-11-21T12:03:42Z","author_association":"OWNER","body":"How about ``switchmode 0`` (Toggle)."}}
{"actor":{"display_login":"arendst"}}