You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Smart (Components) Toolkit — store v1.10.16 / test v1.10.17
8
+
# Smart (Components) Toolkit — store v1.10.16 / test v1.10.18
9
9
10
10
> **📚 Full Documentation:**https://tiwas.github.io/SmartComponentsToolkit/
11
11
@@ -17,16 +17,29 @@ Replace complex flow networks with powerful logic devices controlled by dynamic
17
17
18
18
## What's new
19
19
20
-
### v1.10.17 (test channel)
20
+
### v1.10.18 (test channel)
21
21
22
22
-**Math Compare (And card).** Calculate one value with `+`, `-`, `*` or `/`, then compare the result with another value. Useful for rules like `temperature + 3 is greater than high_threshold`.
23
-
-**Gradient Map (Then card).** Map an input value from one range to another and expose the result as a `Mapped value` tag for the next card. Supports range offsets and configurable rounding, for example mapping `18-23` degrees into fan speed `100-500`.
23
+
-**Gradient Map (Then card).** Map an input value from one range to another and expose the result as a `Mapped value` tag for the next card. Supports range offsets and configurable rounding, for example mapping a room temperature into a heat pump / aircondition fan speed.
24
+
-**Token fix (v1.10.18).** The Gradient Map token now has a distinct `Mapped value` tag, so it is easier to pick the token from the specific map card that actually ran.
25
+
26
+
**Heat pump / aircondition example:**
27
+
```
28
+
WHEN: Temperature changes
29
+
AND: Temperature is less than low_threshold_livingroom
30
+
THEN: Set fan speed to 0%
31
+
32
+
WHEN: Temperature changes
33
+
AND: Temperature is greater than or equal to low_threshold_livingroom
34
+
THEN: Map Temperature in range low_threshold_livingroom to high_threshold_livingroom into 100-500, round to 1
35
+
THEN: Set fan speed to Mapped value
36
+
```
24
37
25
38
---
26
39
27
40
## ✨ Circadian Light Group — now on stable
28
41
29
-
A virtual **light device** that adjusts brightness and color temperature for a group of real lights — automatically following a circadian rhythm. Store is currently v1.10.16; v1.10.17 is available on the test channel.
42
+
A virtual **light device** that adjusts brightness and color temperature for a group of real lights — automatically following a circadian rhythm. Store is currently v1.10.16; v1.10.18 is available on the test channel.
30
43
31
44
### Circadian Light Group highlights
32
45
@@ -78,7 +91,7 @@ Choose how the device knows how bright it is outside:
78
91
79
92
<ahref="https://homey.app/en-no/app/no.tiwas.booleantoolbox/"target="_blank">→ Install store v1.10.16</a>
80
93
<br>
81
-
<ahref="https://homey.app/a/no.tiwas.booleantoolbox/test/"target="_blank">→ Install test v1.10.17</a>
94
+
<ahref="https://homey.app/a/no.tiwas.booleantoolbox/test/"target="_blank">→ Install test v1.10.18</a>
82
95
83
96
---
84
97
@@ -96,6 +109,8 @@ Choose how the device knows how bright it is outside:
96
109
|**Conditional Gates**| Simple GO/NO GO flow control without variables or devices. |
97
110
|**Waiter Gates**| Pause flow until a device capability reaches a target value. |
98
111
|**Evaluate Expression**| Range checking and value mapping with AND/OR logic. |
112
+
|**Math Compare**| Compare a calculated number, e.g. `Temperature + 3` against a threshold. |
113
+
|**Gradient Map**| Map a number from one range to another and pass the `Mapped value` tag to the next card. |
<pclass="text-gray-600 mb-8">A virtual light device that automatically adjusts brightness and color temperature throughout the day based on time, sun position or ambient light, with an optional red mode for night use.</p>
79
79
80
80
<divclass="card">
81
81
<h2class="text-xl font-semibold mb-2 text-purple-600">What's new in 1.10.x</h2>
<li><strong>1.10.16 test</strong> — <ahref="../tools/flow-doctor.html" class="text-purple-600 hover:text-purple-800">Flow Doctor</a> can now resolve previously captured Homey device IDs when deleted devices only appear by ID in broken flows.</li>
83
+
<li><strong>1.10.16</strong> — <ahref="../tools/flow-doctor.html" class="text-purple-600 hover:text-purple-800">Flow Doctor</a> can now resolve previously captured Homey device IDs when deleted devices only appear by ID in broken flows.</li>
84
84
<li><strong>1.10.7</strong> — Multi-device flow cards and the scheduler now write to up to 5 lights in parallel and retry transient mesh timeouts. Conflicting commands (e.g. an "all off" arriving mid-"all on") supersede the running one instead of fighting it.</li>
85
85
<li><strong>1.10.7</strong> — Group-level actions <em>Turn on all members</em> and <em>Turn off all members</em>.</li>
86
86
<li><strong>1.10.6</strong> — On/off state is now respected correctly under all paths.</li>
<pclass="text-gray-700 mb-4">Compares a calculated numeric value without creating a separate Logic variable. The left value can be a tag, then the card applies <code>+</code>, <code>-</code>, <code>*</code> or <code>/</code> before comparing against the right value.</p>
<h3class="text-xl font-semibold mb-3 text-purple-700">Map [input] in range [from] to [to] into [output from] - [output to]</h3>
466
+
<pclass="text-gray-700 mb-4">Maps a numeric input from one range into another and returns the result as a <code>Mapped value</code> tag for the next Advanced Flow card. Values outside the input range are clamped, and the result can be rounded to a selected step.</p>
<pclass="font-semibold text-purple-700 mb-2">Heat pump / aircondition fan example:</p>
485
+
<pclass="text-gray-700"><strong>WHEN</strong> Temperature changes</p>
486
+
<pclass="text-gray-700"><strong>AND</strong> Temperature is less than low_threshold_livingroom</p>
487
+
<pclass="text-gray-700"><strong>THEN</strong> Set fan speed to 0%</p>
488
+
<pclass="text-gray-700 mt-3"><strong>WHEN</strong> Temperature changes</p>
489
+
<pclass="text-gray-700"><strong>AND</strong> Temperature is greater than or equal to low_threshold_livingroom</p>
490
+
<pclass="text-gray-700"><strong>THEN</strong> Map Temperature in range low_threshold_livingroom to high_threshold_livingroom into 100-500, round to 1</p>
491
+
<pclass="text-gray-700"><strong>THEN</strong> Set the heat pump fan speed to <spanclass="code-inline">Mapped value</span></p>
<pclass="text-blue-800 text-sm">If a flow has more than one Map card, choose the <code>Mapped value</code> tag from the Map card on the same branch as the fan-speed action.</p>
<li><strong>Use descriptive formula names:</strong> Makes flow cards more readable (e.g., "security_active" vs "formula1")</li>
648
709
<li><strong>Leverage State changed trigger:</strong> Logic Device's state changed trigger is perfect for toggle actions</li>
649
710
<li><strong>Test with Evaluate action:</strong> Manually trigger evaluation to test formulas without changing inputs</li>
711
+
<li><strong>Use Gradient Map for proportional control:</strong> Map temperatures, humidity, lux or other measurements into a device setting, then pass the <code>Mapped value</code> tag to the next card</li>
650
712
<li><strong>Monitor timeouts:</strong> Use timeout triggers to detect sensor failures or missing inputs</li>
0 commit comments