-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPIO14 changes from '0' to '1' where it shouldn't.. #1265
Comments
Do you also use MQTT importer? (P037) |
Just to be clear, those builds with a date stamp in them are way later than dev-10 and dev-11. So are we on the same topic again, or is this a completely different topic? |
Then you have probably a different version of this library installed. You can also disable (remove) the plugins calling this lib. |
I guess you should go to sleep now, as should I.... |
One tip, you can cite sourcecode from a specific branch. For example: Lines 157 to 174 in 40eb3e7
|
I think I have to take a proper look at MQTT, as well as the controller as the importer. And about the link to source-code. Browse through the code on Github, select the right branch (or tag for this project) and click on a line number. |
10.49 PM? |
I think splitting the bugreports is best, just to get a good summary. |
Oh my, I found the GPIO wrong state cause... |
I'm very curious about your findings :) |
Ok, so I just flashed ESP_Easy_mega-20180429_normal_ESP8266_1024.bin onto a blank node I only want to setup Domoticz MQTT, so I just ignore the first controller Domoticz HTTP, after all it's disabled right ? So just edit controller 2 & set that up as Domoticz MQTT, enter IP & submit - Done ! No problems right ? |
There used to be a limitation on the MQTT controllers. I changed this a while back, to try and make it possible to have multiple MQTT controllers present. Your setup as shown in the screenshots should be a valid one, but I hope all calls to controllers will check for the 'enabled' checkmark. |
Great I am so glad you said "Yes I've done that, it's a 50/50 thing for me" |
I'm using openHAB MQTT on the second controller. |
The other 'big' reason I was glad you said you have left it 'as is' and used the second |
Dev-10 works, Dev-11 this was added, how does it break GPIO state ?
OLDLines 42 to 58 in 4d28d2b
CURRENTLines 43 to 60 in e60c0dc
|
It is a very strange change. And my first impression is the I have to look at the code a bit longer to get it, what's happening here. |
Yeah, the Domoticz code is a mess |
Set the first on to "stand alone", that's equal to none/delete. |
Oh yeah,,, of course, that would work, just I have never considered removing a controller until now.. |
I haven't tested that, maybe? Need to test when I get around to it. |
So this whole issue could have been avoided for me by simply doing things slightly differently.. |
Same experience here when I extended version 10 to 24 tasks. https://github.com/letscontrolit/ESPEasy/issues/590#issuecomment-344511468 Grovkillen commented on Nov 15, 2017:
|
Nice, thanks for your input, I will read more later : #590 (comment) Config.dat is binary, is there an easy way to convert that to plain text ? |
Nope, not yet. |
Is this still an issue? |
I will close this, open if its still a valid issue. |
Summary of the problem
GPIO14 most definitely changes from '0' to '1' where it should not..
GPIO14 shows wrongly as '1' on device page & reports to Domoticz the same '1' as the ESP
This is a working log from Domoticz of the float SW I have across GPIO14
Same log on >Dev_11 Firmware (or greater), but has a problem.
Expected behaviour
Have the change in the physical switch match what is represented on the Device page
Actual behavior
The wrong state is shown on the Device page & wrong state is reported to Domoticz
Steps to reproduce
Dev_11 Firmware default settings
Enable a Switch - I use GPIO14, internal pulldown & Domoticz MQTT
I then using the Devices web-page & a jumper cable from GPIO14 to GND
Simulate On-Off-On, and then replace jumper as a 'Closed Circuit'
A few F5 presses while doing above, and it will soon show wrongly as '1'
otherwise repeat as above a few more times.
Does the problem persists after powering off and on?
Yes
System configuration
In my case a Sonoff Basic with Dev_11 or greater firmware
Dev_4, 5, 6, 7, 8, 9 & 10 are confirmed to not have this issue.
So I tried all other controllers & could not replicate the issue
100% Domoticz MQQT code related.
_C002.ino did not change between Dev_10 & Dev_11
_CPlugin_DomoticzHelper.ino did not exist
_P029_Output.ino changed in Dev_11
I created an archive to help
Inside 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
Selecting both versions, compare with a visual text compare tool.
If someone has the time ? Maybe something stands out ?
Dev_10 works, Dev_11 the problem started.
CHANGED_v2.0.0-dev11.zip
Maybe it is time I tried a more recent release of the firmware too,
see if any other changes have impacted anything..
The last firmware of the more recent ones I have tried was
ESP_Easy_mega-20180322_normal_ESP8266_1024.bin & it had this issue.
then I started back tracking to find a point the bug vanished.
I have not yet tried anything released after this version.
The text was updated successfully, but these errors were encountered: