EMS-ESP32 icon indicating copy to clipboard operation
EMS-ESP32 copied to clipboard

feature: extending Scheduler with functions

Open proddy opened this issue 1 year ago • 1 comments

Discussed in https://github.com/emsesp/EMS-ESP32/discussions/2111

Originally posted by SoftVienka October 19, 2024 Hello Is it possible to use the round() function in the scheduler?

Write entity RAM float (17.25) to entity RAM as int (17)

example: Command: custom/interval Value: (x > 2 && x < 10) ? custom/interval_1 : custom/interval

interval_1 is a float and I want it to be stored as an int into interval

when I write round(custom/interval1) then npr: round17.25 is written into the interval

proddy avatar Oct 20 '24 12:10 proddy

Michael added the functions int, round, abs, log, exp, sqrt and pow in 3.7.0-dev.48

proddy avatar Oct 22 '24 20:10 proddy