diff --git a/nodes/redmatic-homekit-camera.html b/nodes/redmatic-homekit-camera.html
index 9762867..19752cc 100644
--- a/nodes/redmatic-homekit-camera.html
+++ b/nodes/redmatic-homekit-camera.html
@@ -11,8 +11,8 @@
return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/));
}
},
- port: {value: 51912, type: Number, required: true, validate: function (val) {
- return val > 1024 && val < 65536;
+ port: {value: '51912', required: true, validate: function (val) {
+ return RED.validators.number(val) && val > 1024 && val < 65536;
}
},videoProcessor: {value: 'ffmpeg'},
source: {value: '-re -i rtsp://myfancy_rtsp_stream'},
@@ -160,4 +160,4 @@
\ No newline at end of file
+
diff --git a/nodes/redmatic-homekit-tv.html b/nodes/redmatic-homekit-tv.html
index 1d28e02..0b89700 100644
--- a/nodes/redmatic-homekit-tv.html
+++ b/nodes/redmatic-homekit-tv.html
@@ -11,8 +11,8 @@
return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/));
}
},
- port: {value: 51952, type: Number, required: true, validate: function (val) {
- return val > 1024 && val < 65536;
+ port: {value: '51952', required: true, validate: function (val) {
+ return RED.validators.number(val) && val > 1024 && val < 65536;
}
},
inputsources: {
@@ -168,4 +168,4 @@
\ No newline at end of file
+