{"action":"created","issue":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1265","repository_url":"https://api.github.com/repos/letscontrolit/ESPEasy","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1265/comments","events_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1265/events","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1265","id":314887146,"number":1265,"title":"GPIO14 changes from '0' to '1' where it shouldn't..","user":{"login":"Oxyandy","id":36609061,"avatar_url":"https://avatars2.githubusercontent.com/u/36609061?v=4","gravatar_id":"","url":"https://api.github.com/users/Oxyandy","html_url":"https://github.com/Oxyandy","followers_url":"https://api.github.com/users/Oxyandy/followers","following_url":"https://api.github.com/users/Oxyandy/following{/other_user}","gists_url":"https://api.github.com/users/Oxyandy/gists{/gist_id}","starred_url":"https://api.github.com/users/Oxyandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oxyandy/subscriptions","organizations_url":"https://api.github.com/users/Oxyandy/orgs","repos_url":"https://api.github.com/users/Oxyandy/repos","events_url":"https://api.github.com/users/Oxyandy/events{/privacy}","received_events_url":"https://api.github.com/users/Oxyandy/received_events","type":"User","site_admin":false},"labels":[{"id":587074215,"url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Category:%20Plugin","name":"Category: Plugin","color":"5319e7","default":false},{"id":257820023,"url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Type:%20Bug","name":"Type: Bug","color":"cc4543","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/milestones/1","html_url":"https://github.com/letscontrolit/ESPEasy/milestone/1","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/milestones/1/labels","id":2334980,"number":1,"title":"2.1.0 \"MEGA\"","description":"First stable release of the next ESPEasy release. This one incorporates the changes that were in  the ESPEasy mega branch:\r\n // Native SPIFFS support, old custom flash routines removed\r\n // Support OTA up to 1.5MB sketch size (change to 1M SPIFFS model) on 4M modules\r\n // Fallback Wifi AP support\r\n // Supports multiple active controllers\r\n // Supports notification plugins (basic email _N001.ino provided)\r\n // Native SD card support and system logging to SD card\r\n // Taskvalues are preserved during reboot (not after power loss!)\r\n // Multiple rule sets, max 4 sets, each 2k in size\r\n // Several device plugins reworked and added to the main branch:\r\n //   P036 Framed OLED\r\n //   P037 MQTT import\r\n //   P038 NeoPixel\r\n //   P039 Thermocouple\r\n //   P040 ID12/RDM6300 RFID\r\n //   P041 NeoPixel WordClock\r\n //   P042 NeoPixel Candle\r\n //   P043 Timer Clock\r\n //   P044 P1 gateway\r\n // Removed savesettings/savecustomsettings from candle plugin, check this later...\r\n // UDP broadcast option prep\r\n // Flash write protection mechanism (aded command 'resetFlashWriteCounter')\r\n // IDX/var no longer mandatory and only requested when the selected controller needs it\r\n // Clock#Time supports 'Wrk' for workdays and 'Wkd' for weekends as wildcards\r\n","creator":{"login":"psy0rz","id":1179017,"avatar_url":"https://avatars2.githubusercontent.com/u/1179017?v=4","gravatar_id":"","url":"https://api.github.com/users/psy0rz","html_url":"https://github.com/psy0rz","followers_url":"https://api.github.com/users/psy0rz/followers","following_url":"https://api.github.com/users/psy0rz/following{/other_user}","gists_url":"https://api.github.com/users/psy0rz/gists{/gist_id}","starred_url":"https://api.github.com/users/psy0rz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psy0rz/subscriptions","organizations_url":"https://api.github.com/users/psy0rz/orgs","repos_url":"https://api.github.com/users/psy0rz/repos","events_url":"https://api.github.com/users/psy0rz/events{/privacy}","received_events_url":"https://api.github.com/users/psy0rz/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":161,"state":"open","created_at":"2017-02-20T15:03:29Z","updated_at":"2018-04-20T11:17:53Z","due_on":"2018-04-01T07:00:00Z","closed_at":null},"comments":22,"created_at":"2018-04-17T02:58:42Z","updated_at":"2018-04-30T21:41:23Z","closed_at":null,"author_association":"NONE","body":"### Summary of the problem\r\nGPIO14 most definitely changes from '0' to '1' where it should not..\r\nGPIO14 shows wrongly as '1' on device page & reports to Domoticz the same '1' as the ESP\r\nThis is a **working** log from Domoticz of the float SW I have across GPIO14\r\n```\r\n13:17:56 | On <- Float SW rises changing from 'closed circuit' to 'open circuit'\r\n13:17:56 | On\r\n(takes Float SW 2 or 3 seconds to lower)\r\n13:17:58 | Off <- Float SW lowers changing from 'open circuit' to 'closed circuit'\r\n13:17:58 | Off\r\n```\r\nSame log on >Dev_11 Firmware (or greater), but has a problem.\r\n```\r\n11:17:14 | On <- Float SW rises changing from 'closed circuit' to 'open circuit'\r\n11:17:14 | On\r\n(takes float 2 or 3 seconds to lower)-Change in the switch still happens at the right time BUT\r\n11:17:17 | On <- Wrong, should be OFF\r\n11:17:18 | On\r\n```\r\n\r\n### Expected behaviour\r\nHave the change in the physical switch match what is represented on the Device page \r\n### Actual behavior\r\nThe wrong state is shown on the Device page & wrong state is reported to Domoticz \r\n### Steps to reproduce\r\nDev_11 Firmware default settings\r\nEnable a Switch - I use GPIO14, internal pulldown & Domoticz MQTT\r\nI then using the Devices web-page & a jumper cable from GPIO14 to GND\r\nSimulate On-Off-On, and then replace jumper as a 'Closed Circuit'\r\nA few F5 presses while doing above, and it will soon show wrongly as '1'\r\notherwise repeat as above a few more times.\r\n### Does the problem persists after powering off and on?\r\nYes\r\n### System configuration\r\nIn my case a Sonoff Basic with Dev_11 or greater firmware\r\nDev_4, 5, 6, 7, 8, 9 & 10 are confirmed to not have this issue.\r\n\r\nSo I tried all other controllers & could not replicate the issue\r\n100% Domoticz MQQT code related. \r\n_C002.ino did not change between Dev_10 & Dev_11\r\n_CPlugin_DomoticzHelper.ino did not exist\r\n_P029_Output.ino changed in Dev_11\r\n\r\nI created an archive to help\r\nInside are only the changed files from Dev_10 to Dev_11, all renamed in the format below to make the origin of each file perfectly clear - Extract contents of this archive to a single folder\r\n\r\n> _P029_Output_Dev_10.ino\r\n> _P029_Output_Dev_11.ino\r\n\r\nSelecting both versions, compare with a visual text compare tool.\r\nIf someone has the time ? Maybe something stands out ?\r\nDev_10 works, Dev_11 the problem started.\r\n\r\n[CHANGED_v2.0.0-dev11.zip](https://github.com/letscontrolit/ESPEasy/files/1888033/CHANGED_v2.0.0-dev11.zip)\r\nMaybe it is time I tried a more recent release of the firmware too, \r\nsee if any other changes have impacted anything..\r\n\r\nThe last firmware of the more recent ones I have tried was \r\nESP_Easy_mega-20180322_normal_ESP8266_1024.bin & it had this issue.\r\nthen I started back tracking to find a point the bug vanished.\r\nI have not yet tried anything released after this version."},"comment":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/comments/385537512","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1265#issuecomment-385537512","issue_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1265","id":385537512,"user":{"login":"Oxyandy","id":36609061,"avatar_url":"https://avatars2.githubusercontent.com/u/36609061?v=4","gravatar_id":"","url":"https://api.github.com/users/Oxyandy","html_url":"https://github.com/Oxyandy","followers_url":"https://api.github.com/users/Oxyandy/followers","following_url":"https://api.github.com/users/Oxyandy/following{/other_user}","gists_url":"https://api.github.com/users/Oxyandy/gists{/gist_id}","starred_url":"https://api.github.com/users/Oxyandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oxyandy/subscriptions","organizations_url":"https://api.github.com/users/Oxyandy/orgs","repos_url":"https://api.github.com/users/Oxyandy/repos","events_url":"https://api.github.com/users/Oxyandy/events{/privacy}","received_events_url":"https://api.github.com/users/Oxyandy/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T21:41:23Z","updated_at":"2018-04-30T21:41:23Z","author_association":"NONE","body":"Oh yeah,,, of course, that would work, it just I have never considered removing a controller until now..\r\nIn your case I wonder how things work, no Dom HTTP in first - no wrong state ?\r\n"}}
{"actor":{"display_login":"Oxyandy"}}