-
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
eventvalue parsing #4198
Comments
OK, this may indeed be related to this strip leading zeroes. I was already a bit afraid this may become an issue and was tempted to add another checkbox to enable/disable this optimization. |
Please don't add the checkbox, the optimization (or a value translation) works fine except this particular case, where the first zero looks to be eaten by wrong test condition. Hopefully this could be fixed without complicating the settings page. |
[Rules] Fix matching events with first eventvalue being zero (#4198)
I'm not sure it's because of #4146, but zero-valued eventvalues are not parsed anymore in the latest release.
Tested on ESP_Easy_mega_20220809_normal_ESP8266_4M1M build
The rule triggers log record upon arrival of setctl command
If I send to the command topic the following payload:
event,setctl=1,2,3
the log shows
If I change the payload to
event,setctl=0,2,3
logentry is not triggered:
This affects only %eventvalue1%, all subsequent zero values are processed as expected
The text was updated successfully, but these errors were encountered: