Skip to content

Commit b487ada

Browse files
committed
Updated naming for switch type 8
Now called "numeric input" instead of "unranged setpoint".
1 parent 3b149fc commit b487ada

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/nodes/victron-virtual-functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const SWITCH_TYPE_CONFIGS = {
5353
// ]
5454
// },
5555
8: {
56-
label: 'Unranged setpoint',
56+
label: 'Numeric input',
5757
fields: [
5858
{ id: 'min', type: 'number', placeholder: 'Min value', title: 'Slider minimum', style: 'width:80px;' },
5959
{ id: 'max', type: 'number', placeholder: 'Max value', title: 'Slider maximum', style: 'width:80px;' },

src/nodes/victron-virtual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@
590590
- **Dimmable**: PWM-controlled switch with adjustable brightness from 0-100%
591591
- **Temperature setpoint**: Sets a target temperature value
592592
- **Stepped switch** : Select up to 7 discrete steps (e.g., fan speeds)
593-
- **Unranged setpoint**: Set any numeric value without predefined limits
593+
- **Numeric input**: A numeric input control with configurable minimum/maximum values, step size, and display unit that allows precise manual entry of setpoint values.
594594
- **Three-state switch**: Select from three states (On, Off, Auto)
595595

596596
You can configure up to 4 switches within a virtual switch, and each switch can be individually set to any

src/nodes/victron-virtual.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ module.exports = function (RED) {
794794
4: 'Stepped switch',
795795
6: 'Dropdown',
796796
7: 'Basic slider',
797-
8: 'Unranged setpoint',
797+
8: 'Numeric input',
798798
9: 'Three-state',
799799
10: 'Bilge pump control'
800800
}[v] || 'unknown'),
@@ -943,7 +943,7 @@ module.exports = function (RED) {
943943
iface[labelsKey] = labelsJson
944944
}
945945

946-
if (switchType === 7 || switchType === 8) { // Basic slider or unranged setpoint
946+
if (switchType === 7 || switchType === 8) { // Basic slider or Numeric input
947947
const dimmingKey = `SwitchableOutput/output_${i}/Dimming`
948948
ifaceDesc.properties[dimmingKey] = {
949949
type: 'd',

0 commit comments

Comments
 (0)