I want to multiply the variable by 100. But it does not want to work. Where is the error in my case?
variable - formula
Moderators: grovkillen, Stuntteam, TD-er
Re: variable - formula
First of all, I don't know whether the MQTT import does properly process the formula.
And second, the formula is only applied when a value is updated.
The formula syntax does look OK.
I just checked the documentation to make sure: https://espeasy.readthedocs.io/en/lates ... la#formula
To test whether the formula is working, you could also check using the sysinfo task and set this to update ever second to quickly see if the syntax is correct.
The reason I think the MQTT import task may not properly process the formula is that this isn't fetching a value based on a timer, but rather whenever something arrives.
So it doesn't yield new values on a call of PLUGIN_READ, but rather whenever a MQTT topic matches.
If it doesn't process the formula, it still is a bug...
And second, the formula is only applied when a value is updated.
The formula syntax does look OK.
I just checked the documentation to make sure: https://espeasy.readthedocs.io/en/lates ... la#formula
To test whether the formula is working, you could also check using the sysinfo task and set this to update ever second to quickly see if the syntax is correct.
The reason I think the MQTT import task may not properly process the formula is that this isn't fetching a value based on a timer, but rather whenever something arrives.
So it doesn't yield new values on a call of PLUGIN_READ, but rather whenever a MQTT topic matches.
If it doesn't process the formula, it still is a bug...
Who is online
Users browsing this forum: Ahrefs [Bot] and 47 guests