Version 1.6.0 with a major update to math and expressions
Hi everyone,
Version 1.6.0 of Flow Gadgets is now available.
This update adds new formula functions that allow temporary values and observed-value statistics to be used directly in Math and Expressions:
-
temp_num(ID ; default)
-
temp_bool(ID ; default)
-
temp_text(ID ; default)
-
obs_min(ID ; default)
-
obs_max(ID ; default)
-
obs_avg(ID ; default)
The observed-value functions also support an optional third parameter:
- obs_min(ID ; default ; require_ready)
require_ready defaults to true. When set to false, the currently available observed values are used even if the full observation window is not ready yet.
Examples:
-
temp_num(target_temperature ; 21) + 2
-
temp_bool(heating_allowed ; false) = true
-
temp_text(operating_mode ; “unknown”) = “holiday”
-
obs_min(room_temperature ; -999) > 10
-
obs_max(grid_power ; 9999 ; false) < 500
In Math, temp_bool() returns 1 for true and 0 for false. temp_text() is only available in Expressions.
These functions also work automatically in all existing cards with Math support and in most cards that use Expressions.
Examples:
REMINDER:
The complete documentation is here: Pascal Nohl
