wren node takes switches (plug, socket, appliances), refused when the model lacks the kind
This commit is contained in:
@@ -367,9 +367,11 @@ that is not wired to the node.
|
||||
`garden`, `patio`, `garage`, `driveway`, `balcony`
|
||||
- **kind**: `light`, `lamp`, `brightness` for a light; `setpoint`, `heating`,
|
||||
`heat`, `boost` for heating; `media`, `music`, `tv`; `shutter`, `blind`,
|
||||
`cover`; `water`, `watering`, `sprinkler`
|
||||
`cover`; `water`, `watering`, `sprinkler`; `switch`, `plug`, `socket`,
|
||||
`appliances` for a switch, which only wren's s10 model knows
|
||||
|
||||
A port naming anything else is refused when the flow is built. A port is
|
||||
A port naming anything else, or a kind the installed model lacks, is refused
|
||||
when the flow is built. A port is
|
||||
named after its message unless it is given a name of its own, in the node
|
||||
panel's port name field or as `{"name": "setpoint", "port":
|
||||
"living_room_setpoint"}` through the flow API.
|
||||
@@ -387,11 +389,12 @@ reads.
|
||||
| `shutters.up` / `down` | `true` / `false` | `100` / `0` | `up` / `down` |
|
||||
| `shutters.stop` | — | — | `stop` |
|
||||
| `watering.start` / `stop` | `true` / `false` | — | `on` / `off` |
|
||||
| `switches.on` / `off` | `true` / `false` | `1` / `0` | `on` / `off` |
|
||||
|
||||
| Setting | Default | Notes |
|
||||
|---|---|---|
|
||||
| `apply` | `false` | write to the targets; off, the node only reports |
|
||||
| `min_confidence` | `0.93` | below this nothing is written |
|
||||
| `min_confidence` | `0.93` | below this nothing is written. wren's s10 model is less sure of itself, use `0.8` with it |
|
||||
| `aliases` | empty | the house's own words, or words the recogniser hears wrong, in the model's: `{"traverse": "living room light", "page too": "patio"}` |
|
||||
|
||||
Each record in `actions` contains `message`, `value`, `applied`, `delay_s`,
|
||||
@@ -412,8 +415,8 @@ The model sees every area, wired or not, each with at least a light, so "the
|
||||
bathroom light" is not taken for a light that is wired elsewhere. Such a call
|
||||
is reported but not applied, and goes on to `unhandled`. So is a call on an
|
||||
area the command does not name, unless it is the user's area or, with no area
|
||||
named, the living room: "switch on the appliances" is a word the model never
|
||||
learned, and it lands on whichever light it was shown. The command is read
|
||||
named, the living room: "switch on the appliances" is a word the pinned model
|
||||
never learned, and it lands on whichever light it was shown. The command is read
|
||||
in lower case without sentence marks and with number words as digits ("in
|
||||
five minutes" as "in 5 minutes"), as the model was trained. `aliases` are
|
||||
applied before, whole words in any case, and `unhandled` carries the prompt
|
||||
|
||||
Reference in New Issue
Block a user