Change the electrical project
edit_electricalAssign circuits, voltage, cable routes, and Wi-Fi settings to points in an electrical and telecom project, with each action as one undoable step.
Instructions
Change the electrical and telecom project (electrical reads it); each action is one undoable step. assign {ids, circuit, va?}, or circuits {"C1": [ids], …} for the whole division, writes circuits, power and volts (127|220; a 220 V outlet makes its circuit 220 V) on points; on automation points it takes standby_w, on a dimmer max_w, on a panel modules. voltage {volts?, short_ka?, earthing?}. cable {kind, pts} draws a run by hand (with ids or circuit instead of pts it is a route). route {kind, ids? | circuit?, via?: ceiling|floor|wall|tape, cat?, from?} lays the run as it is built, from the nearest panel along and inside the walls, replacing the earlier run of the circuit, and answers {via, suggested, length_m, by_premise_m, bends, materials: [[item, qty, unit]]}; without via it takes the cheapest premise that can be built. via=tape is surface flat wiring, power only (rules topic=electrical). wifi {ids, standard?, poe?, uplink?, bands?} writes those on access points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| va | No | Power per point, VA, instead of the norm's default | |
| cat | No | For `route` of data: `cat5e`, `cat6` (default) or `cat6a` | |
| ids | No | Point ids for `assign` | |
| poe | No | For `wifi`: whether `ids` are fed by their data cable (`PoE`) | |
| pts | No | For `cable`: the run's points `[[x,y], …]`, cm | |
| via | No | For `route`: where the run passes, `ceiling` (slab, dropping in the walls), `floor` or `wall`. Omitted: the cheapest that can be built | |
| band | No | For `wifi`: the band the suggestion aims at, `2.4`, `5` (default) or `6` | |
| from | No | For `route`: the panel it starts from; default the nearest of its kind | |
| kind | No | For `cable` and `route`: what the run carries | |
| bands | No | For `wifi`: the bands they radiate when fewer than their generation's, e.g. `2.4,5` for a dual-band Wi-Fi 7 | |
| max_w | No | For `assign` on a dimmer: the most lighting it takes, W | |
| volts | No | Supply voltage, V; with `assign`, the points' own, 127 or 220 | |
| action | No | `assign` puts `ids` on `circuit` (empty takes them off), `va` sets their power; `voltage` is the supply, 127 or 220 V | |
| uplink | No | For `wifi`: the access points' wired uplink, Gbps (1, 2.5, 5, 10) | |
| circuit | No | Circuit name, e.g. `C3` | |
| modules | No | For `assign` on a distribution panel: the DIN modules it holds | |
| circuits | No | For `assign`: the whole division at once, `{"C1": [ids], "C2": [ids]}`, in one undoable step | |
| earthing | No | For `voltage`: the earthing scheme, `TN-S`, `TN-C-S` or `TT` | |
| short_ka | No | For `voltage`: the presumed short-circuit current at the delivery point, kA, as the utility informs it | |
| standard | No | For `wifi`: the access points' standard, `wifi5`, `wifi6`, `wifi6e` or `wifi7`, written on `ids` | |
| standby_w | No | For `assign` on automation points: standby consumption, W |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| v | No | ||
| ok | No | ||
| ids | No | ||
| rev | No | ||
| run | No | ||
| via | No | ||
| gone | No | ||
| tape | No | ||
| text | No | ||
| added | No | ||
| bends | No | ||
| changed | No | ||
| coverage | No | ||
| length_m | No | ||
| warnings | No | ||
| materials | No | ||
| suggested | No | ||
| properties | No | ||
| annotations | No | ||
| by_premise_m | No | ||
| access_points | No | ||
| replaced_drawn | No |