variable - formula

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nuiler
New user
Posts: 4
Joined: 04 May 2023, 11:47

variable - formula

#1 Post by nuiler » 11 May 2023, 14:19

I want to multiply the variable by 100. But it does not want to work. Where is the error in my case?
Screenshot 2023-05-11 141536.jpg
Screenshot 2023-05-11 141536.jpg (34.47 KiB) Viewed 566 times
Screenshot 2023-05-11 141620.jpg
Screenshot 2023-05-11 141620.jpg (105.35 KiB) Viewed 566 times

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: variable - formula

#2 Post by TD-er » 11 May 2023, 20:49

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...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 47 guests