Add files via upload

This commit is contained in:
J.H. Artworks
2024-02-26 09:23:09 +01:00
committed by GitHub
parent e041f2234f
commit a6e897b205
5 changed files with 46 additions and 15 deletions
+1
View File
@@ -7,6 +7,7 @@
],
"actions":
[
{ "type": "Button", "label": "Set Init Values", "onClick": "VTMM_setInitValues($id);" }
],
"status":
+9 -2
View File
@@ -14,13 +14,13 @@ class MinMax extends IPSModule {
SetValue($this->RegisterVariableFloat("ActualValue", "Aktueller Wert","",0),123.4);
SetValue($this->RegisterVariableFloat("MinValue", "Minimalwert","LimitValue",10),20);
$this->RegisterVariableFloat("MinValue", "Minimalwert","LimitValue",10);
$this->EnableAction("MinValue");
SetValue($this->RegisterVariableBoolean("MinValueEn", "Minimalwert auswerten?","LimitEn",20),true);
$this->EnableAction("MinValueEn");
$this->RegisterVariableBoolean("IsMinValue", "Minimalwert","~Alert",30);
SetValue($this->RegisterVariableFloat("MaxValue", "Maximalwert","LimitValue",50),70);
$this->RegisterVariableFloat("MaxValue", "Maximalwert","LimitValue",50);
$this->EnableAction("MaxValue");
SetValue($this->RegisterVariableBoolean("MaxValueEn", "Maximalwert auswerten?","LimitEn",60),true);
$this->EnableAction("MaxValueEn");
@@ -169,7 +169,14 @@ class MinMax extends IPSModule {
return false;
}
}
public function setInitValues(){
SetValue($this->GetIDForIdent("NotifyTitel"),"Störung!");
SetValue($this->GetIDForIdent("NotifyTextMin"),"Grenzwert unterschritten");
SetValue($this->GetIDForIdent("NotifyTextMax"),"Grenzwert überschritten");
SetValue($this->GetIDForIdent("Hysterese"),1);
}
}
?>