diff --git a/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_fan_speed.sh b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_fan_speed.sh
new file mode 100755
index 0000000000..3b62e0559d
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_fan_speed.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+board_id=$(smbmsg -f /dev/smb1 -s 0x62 -c 0x00 -i 1 | cut -c 4-5)
+
+if [ ! -z $board_id ]; then
+ for fan in 0 1; do
+ fan_speed_in_steps=$(smbmsg -f /dev/smb1 -s 0x36 -c $fan -i 1 -F "%d")
+ echo fan$((fan + 1))=$(($fan_speed_in_steps * 50))
+ done
+fi
\ No newline at end of file
diff --git a/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_id.sh b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_id.sh
new file mode 100755
index 0000000000..ad3ed8f394
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_id.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+board_id=$(smbmsg -f /dev/smb1 -s 0x62 -c 0x00 -i 1)
+
+echo $board_id
\ No newline at end of file
diff --git a/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_temp.sh b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_temp.sh
new file mode 100755
index 0000000000..29317ed988
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_get_temp.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+#Check CPLD first to make sure we are on a VEP board
+board_id=$(smbmsg -f /dev/smb1 -s 0x62 -c 0x00 -i 1 | cut -c 4-5)
+
+if [ ! -z $board_id ]; then
+ smbmsg -f /dev/smb1 -s 0x94 -c 0 -i 1 -F "%0d"
+fi
\ No newline at end of file
diff --git a/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_fan_speed.sh b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_fan_speed.sh
new file mode 100755
index 0000000000..1786239ba7
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_fan_speed.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+
+if [ ! -z $1 ]; then
+ #Check CPLD first to make sure we are on a VEP board
+ board_id=$(smbmsg -f /dev/smb1 -s 0x62 -c 0x00 -i 1 | cut -c 4-5)
+ mode=$1
+ current_control_reg=$(smbmsg -f /dev/smb1 -s 0x36 -c 0x04 -i 1)
+ if [ x"$mode" == x"0" ]; then #auto mode
+ if [ "$current_control_reg" != "0x14" ]; then
+ # if we are not already in auto mode, then switch
+ smbmsg -f /dev/smb1 -s 0x36 -c 0x04 -o 1 0x14
+ fi
+ elif [ x"$mode" == x"1" ]; then #manual mode
+ if [ "$current_control_reg" != "0x34" ]; then
+ # if we are not already in manual mode, then switch
+ smbmsg -f /dev/smb1 -s 0x36 -c 0x04 -o 1 0x34
+ fi
+ if [ ! -z $2 ]; then
+ dc=$(( $2 & 0x0f )) #keep only the lowest nibble, the register only goes up to 0x0f
+
+ if [ x"$board_id" != x"0" ] && [ x"$board_id" != x"1" ]; then
+ smbmsg -f /dev/smb1 -s 0x36 -c 0x06 -o 1 $dc
+ fi
+ else
+ echo "No duty cycle specified. Using previous."
+ fi
+ fi
+fi
+
diff --git a/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_led.sh b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_led.sh
new file mode 100755
index 0000000000..5d39eba1ca
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/scripts/vep1400hw/vep1400_set_led.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+board_id=$(smbmsg -f /dev/smb1 -s 0x62 -c 0x00 -i 1 | cut -c 4-5)
+
+if [ ! -z $board_id ] && [ ! -z $1 ] && [ ! -z $2 ] && [ ! -z $3 ]; then
+ red=$(( $1 & 0xff ))
+ green=$(( $2 & 0xff ))
+ blue=$(( $3 & 0xff ))
+ # set front LED to green
+ # format is -c (red) -o 2 (green) (blue) (some models lack a blue led)
+ smbmsg -f /dev/smb1 -s 0x40 -c $red -o 2 $green $blue
+fi
diff --git a/sysutils/vep1400-hw/src/opnsense/service/conf/actions.d/actions_vep1400hw.conf b/sysutils/vep1400-hw/src/opnsense/service/conf/actions.d/actions_vep1400hw.conf
new file mode 100644
index 0000000000..93c2201b6f
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/service/conf/actions.d/actions_vep1400hw.conf
@@ -0,0 +1,29 @@
+[getfan]
+command:/usr/local/opnsense/scripts/vep1400hw/vep1400_get_fan_speed.sh
+parameters:
+type:script_output
+message:Get VEP Fan speed
+
+[setfan]
+command:/usr/local/opnsense/scripts/vep1400hw/vep1400_set_fan_speed.sh
+parameters:%s %s
+type:script
+message:Set VEP Fan speed
+
+[gettemp]
+command:/usr/local/opnsense/scripts/vep1400hw/vep1400_get_temp.sh
+parameters:
+type:script_output
+message:Get VEP board temp
+
+[getid]
+command:/usr/local/opnsense/scripts/vep1400hw/vep1400_get_id.sh
+parameters:
+type:script_output
+message:Get VEP board id
+
+[setled]
+command:/usr/local/opnsense/scripts/vep1400hw/vep1400_set_led.sh
+parameters:%s %s %s
+type:script
+message:Set VEP front LED color
\ No newline at end of file
diff --git a/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/+TARGETS b/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/+TARGETS
new file mode 100644
index 0000000000..115c2090f8
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/+TARGETS
@@ -0,0 +1 @@
+vep1400.conf:/usr/local/etc/vep1400/vep1400.conf
\ No newline at end of file
diff --git a/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/vep1400.conf b/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/vep1400.conf
new file mode 100644
index 0000000000..f47eea332d
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/service/templates/OPNsense/vep1400hw/vep1400.conf
@@ -0,0 +1,7 @@
+{% if not helpers.empty('OPNsense.vephw.general.enabled') %}
+RED={{ OPNsense.vephw.led.red|default("0x00") }}
+GREEN={{ OPNsense.vephw.led.green|default("0xff") }}
+BLUE={{ OPNsense.vephw.led.blue|default("0x00") }}
+FANCONTROL={{ OPNsense.vephw.general.FanControl|default("0") }}
+FANDUTY={{ OPNsense.vephw.general.FanDutyCycle|default("0") }}
+{% endif %}
diff --git a/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Metadata/Vep1400HW.xml b/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Metadata/Vep1400HW.xml
new file mode 100644
index 0000000000..61a9bdd8c2
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Metadata/Vep1400HW.xml
@@ -0,0 +1,16 @@
+
+
+ Vep1400HW.js
+
+ /api/vep1400hw/info/fanstatus
+
+
+ VEP1400 Hardware Information
+ Fan speed not available.
+ Fan
+ Temperature
+ Board ID
+ Not a VEP1400 board or unable to read CPLD.
+
+
+
diff --git a/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Vep1400HW.js b/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Vep1400HW.js
new file mode 100644
index 0000000000..9d60891853
--- /dev/null
+++ b/sysutils/vep1400-hw/src/opnsense/www/js/widgets/Vep1400HW.js
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2024 Deciso B.V.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+export default class Vep1400Hw extends BaseTableWidget {
+ constructor() {
+ super();
+ }
+
+ getMarkup() {
+ let $container = $('');
+ let $sysinfotable = this.createTable('vepinfo-table', {
+ headerPosition: 'left',
+ });
+ $container.append($sysinfotable);
+ return $container;
+ }
+
+ async onWidgetTick() {
+ let data = await this.ajaxCall('/api/vep1400hw/info/boardid');
+ let boardid = data['boardid'];
+ if ( boardid != null) {
+ let lower_nibble = boardid.substring(3);
+ if (lower_nibble != '0' && lower_nibble != '1' ) {
+
+ let fandata = await this.ajaxCall('/api/vep1400hw/info/fanstatus');
+
+ if (fandata['status'] != 'failed') {
+ $('#fan1').text(fandata['fan1'] + ' RPM');
+ $('#fan2').text(fandata['fan2'] + ' RPM');
+ }
+ }
+ }
+ let tempdata = await this.ajaxCall('/api/vep1400hw/info/tempstatus');
+
+ $('#temp').text(tempdata['temp'] + '℃');
+ }
+
+ async onMarkupRendered() {
+ let rows = [];
+ let data = await this.ajaxCall('/api/vep1400hw/info/boardid');
+ let boardid = data['boardid'];
+
+ if (!boardid || boardid != null) {
+ rows.push([[this.translations['boardid']], boardid]);
+ let lower_nibble = boardid.substring(3);
+ if (lower_nibble != '0' && lower_nibble != '1' ) {
+ rows.push([[this.translations['fan']] + ' 1', $('').prop('outerHTML')]);
+ rows.push([[this.translations['fan']] + ' 2', $('').prop('outerHTML')]);
+ }
+ rows.push([[this.translations['temp']], $('').prop('outerHTML')]);
+
+ }
+ else {
+ rows.push([[this.translations['boarderror']]]);
+ }
+ super.updateTable('vepinfo-table', rows);
+ }
+}
\ No newline at end of file