-
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
Problems with Nextion #2772
Comments
See this issue describing what you probably experience: #2724 For example:
Will then become:
(added single quote to wrap the parameter and removed spaces after the |
There is no space in my rules, it was a mistake in the post. I've already tried that with the quotes. |
The quotes wrapping the whole parameter? |
yes |
Please post your relevant rules, which you have now active so I can see what is stored in your rules. |
only the %ip% is working |
Can you enable debug log and post the relevant log parts where the decoding of the rules are shown? |
3723967: Command: event |
Is that with debug level enabled? |
were can I enable the debug level? |
4623984: ACT : Event,SendeSchalter |
What build are you using? And since the Nextion plugin is only present in "testing", there should be debug info. |
|
I'm looking at the code of the Nextion plugin now. Also the Nextion plugin does not use the (new) standard parse functions, although I am not 100% sure that's what is causing the issue here. |
In this build is all ok;
|
Can you test with this test build ? |
This one? There ist the same error
|
Sorry, now the right one. Looks good, I'll still test everything |
It looks like everything works. |
OK, I will make it into a pull request and if someone else can test it, then it will be in the next nightly build. |
Done! I confirmed that your test build restores the broken Nextion rules.
|
While you're at it... I just finished changing other plugins too, which were probably effected in the same way. |
The test build for this PR: |
I tested this version on different controllers. I use the 8266_4M1M dev and normal versions with different sensors and switches / buttons and mqtt. All functions work for me. Thank you for your great work. |
[Nextion] Fix parsing rules for Nextion plugin (#2772)
I have an error with the Nextion plugin:
The command does not work in the rules:
nextion, page99.t13.txt="%c_m2dhm%(% uptime%)"
The command works:
nextion, page99.t14.txt="%ip%"
But it works in lines 1-10 for devices.
The following is displayed in the logfile:
1311958: EVENT: Rules#Timer = 7
1312012: ACT: nextion, page99.t13.txt = '0d00h22m'
1312020: ACT: nextion, page99.t14.txt = '192.168.178.14'
The following are also not sent to the Nextion:
Nextion, page01.t10.txt="[BME280#Temperature]"
Nextion, page01.t11.txt="[BME280#Humidity]"
Nextion, page01.t12.txt="[BME280#Pressure]"
Nextion, page05.t13.txt="[DS18b20#Temperature]"
When I send UPD commandos to the Nextion it works too.
Only the rules do not work.
The error occurs at least since version mega-20191003
The text was updated successfully, but these errors were encountered: