Skip to content

Commit f892274

Browse files
committed
Disambiguate gradient map output token
1 parent 3c531e9 commit f892274

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

HOMEY_COMMUNITY_LISTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Replace complex flow networks with powerful logic devices controlled by dynamic
2020
### v1.10.17 (test channel)
2121

2222
- **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 an `Output 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 `18-23` degrees into fan speed `100-500`.
2424

2525
---
2626

no.tiwas.booleantoolbox/.homeychangelog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@
9999
"en": "Captures Homey device IDs and names so Flow Doctor (https://tiwas.github.io/SmartComponentsToolkit/tools/flow-doctor.html) can resolve references to previously deleted devices."
100100
},
101101
"1.10.17": {
102-
"en": "Added Math Compare and Gradient Map flow cards. Gradient Map outputs a tag and supports range offsets plus configurable rounding."
102+
"en": "Added Math Compare and Gradient Map flow cards. Gradient Map outputs a Mapped value tag and supports range offsets plus configurable rounding."
103103
}
104104
}

no.tiwas.booleantoolbox/.homeycompose/flow/actions/calculate_gradient.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"en": "0",
4545
"no": "0"
4646
},
47+
"defaultValue": 0,
4748
"required": false
4849
},
4950
{
@@ -69,6 +70,7 @@
6970
"en": "0",
7071
"no": "0"
7172
},
73+
"defaultValue": 0,
7274
"required": false
7375
},
7476
{
@@ -106,16 +108,17 @@
106108
"en": "1",
107109
"no": "1"
108110
},
111+
"defaultValue": 1,
109112
"required": false
110113
}
111114
],
112115
"tokens": [
113116
{
114-
"name": "output_value",
117+
"name": "mapped_value",
115118
"type": "number",
116119
"title": {
117-
"en": "Output value",
118-
"no": "Output-verdi"
120+
"en": "Mapped value",
121+
"no": "Mappet verdi"
119122
},
120123
"example": 300
121124
}

no.tiwas.booleantoolbox/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ module.exports = class BooleanToolboxApp extends Homey.App {
656656
});
657657

658658
return {
659-
output_value: gradient.outputValue,
659+
mapped_value: gradient.outputValue,
660660
};
661661
});
662662
this.logger.debug(" -> OK: ACTION card registered: 'calculate_gradient'");

0 commit comments

Comments
 (0)