Skip to content

Commit cebb1a3

Browse files
committed
fix: change relative non-persistent type to 0x0003
1 parent 81a15d7 commit cebb1a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Hoymiles/src/commands/ActivePowerControlCommand.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
typedef enum { // ToDo: to be verified by field tests
77
AbsolutNonPersistent = 0x0000, // 0
8-
RelativNonPersistent = 0x0001, // 1
8+
RelativNonPersistent = 0x0003, // 3 TODO(andreasboehm): not sure why this is now 3 instead of 1. Probably only works for inverters that support PDL
99
AbsolutPersistent = 0x0100, // 256
1010
RelativPersistent = 0x0101 // 257
1111
} PowerLimitControlType;

webapp/src/views/HomeView.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
</button>
449449
<ul class="dropdown-menu dropdown-menu-end">
450450
<li>
451-
<a class="dropdown-item" @click="onSelectType(1)" href="#">{{ $t('home.Relative') }}</a>
451+
<a class="dropdown-item" @click="onSelectType(3)" href="#">{{ $t('home.Relative') }}</a>
452452
</li>
453453
<li>
454454
<a class="dropdown-item" @click="onSelectType(0)" href="#">{{ $t('home.Absolute') }}</a>
@@ -862,7 +862,7 @@ export default defineComponent({
862862
this.showAlertLimit = false;
863863
this.targetLimitList.serial = '';
864864
this.targetLimitList.limit_value = 0;
865-
this.targetLimitType = 1;
865+
this.targetLimitType = 3;
866866
this.targetLimitTypeText = this.$t('home.Relative');
867867
868868
this.limitSettingLoading = true;
@@ -908,7 +908,7 @@ export default defineComponent({
908908
});
909909
},
910910
onSelectType(type: number) {
911-
if (type == 1) {
911+
if (type == 3) {
912912
this.targetLimitTypeText = this.$t('home.Relative');
913913
this.targetLimitMin = 0;
914914
this.targetLimitMax = 100;

0 commit comments

Comments
 (0)