{"action":"created","issue":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/2175","repository_url":"https://api.github.com/repos/domoticz/domoticz","labels_url":"https://api.github.com/repos/domoticz/domoticz/issues/2175/labels{/name}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/2175/comments","events_url":"https://api.github.com/repos/domoticz/domoticz/issues/2175/events","html_url":"https://github.com/domoticz/domoticz/issues/2175","id":300157837,"node_id":"MDU6SXNzdWUzMDAxNTc4Mzc=","number":2175,"title":"Double entry for ON Switch","user":{"login":"sineverba","id":2634842,"node_id":"MDQ6VXNlcjI2MzQ4NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/2634842?v=4","gravatar_id":"","url":"https://api.github.com/users/sineverba","html_url":"https://github.com/sineverba","followers_url":"https://api.github.com/users/sineverba/followers","following_url":"https://api.github.com/users/sineverba/following{/other_user}","gists_url":"https://api.github.com/users/sineverba/gists{/gist_id}","starred_url":"https://api.github.com/users/sineverba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sineverba/subscriptions","organizations_url":"https://api.github.com/users/sineverba/orgs","repos_url":"https://api.github.com/users/sineverba/repos","events_url":"https://api.github.com/users/sineverba/events{/privacy}","received_events_url":"https://api.github.com/users/sineverba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-26T09:10:50Z","updated_at":"2018-10-03T06:33:06Z","closed_at":"2018-02-27T07:33:38Z","author_association":"NONE","body":"More detail come from here: http://www.domoticz.com/forum/viewtopic.php?p=172688&sid=2e143619c1ebb415a95efeaad0f790d2#p172688\r\n\r\nI'm using version 3.8153 on Raspberry Pi3.\r\n\r\nI command ON and OFF a relay, via API.\r\n\r\nWhen API initialize the ON command, entry **is twice registered**. When API send OFF, in log there is only one entry.\r\n\r\nThe issue seems catch from an user:\r\n\r\n**\"In mainworker.cpp SwitchLight call SwitchLightInt\r\nSwitchLight checks that value is changed or not (and call or not SwitchLightInt)\r\n\r\nTasker from event call directly SwitchLight (and don't check last state of switch)\"**\r\n\r\nThank you very much\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/comments/426526565","html_url":"https://github.com/domoticz/domoticz/issues/2175#issuecomment-426526565","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/2175","id":426526565,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjUyNjU2NQ==","user":{"login":"gizmocuz","id":2265299,"node_id":"MDQ6VXNlcjIyNjUyOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2265299?v=4","gravatar_id":"","url":"https://api.github.com/users/gizmocuz","html_url":"https://github.com/gizmocuz","followers_url":"https://api.github.com/users/gizmocuz/followers","following_url":"https://api.github.com/users/gizmocuz/following{/other_user}","gists_url":"https://api.github.com/users/gizmocuz/gists{/gist_id}","starred_url":"https://api.github.com/users/gizmocuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizmocuz/subscriptions","organizations_url":"https://api.github.com/users/gizmocuz/orgs","repos_url":"https://api.github.com/users/gizmocuz/repos","events_url":"https://api.github.com/users/gizmocuz/events{/privacy}","received_events_url":"https://api.github.com/users/gizmocuz/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T06:33:06Z","updated_at":"2018-10-03T06:33:06Z","author_association":"CONTRIBUTOR","body":"@Camposmansi , okey, that might be easier to debug for me. So you added a dummy hardware in domoticz, created a virtual switch inside this.\r\nThen you use MQTT to switch this to On or Off and you get two log entries ?\r\nCould you post me the MQTT mosquitto_pub command line message you are sensing ? With this we should be able to debug this"}}
{"actor":{"display_login":"gizmocuz"}}