Skip to content

Commit 200ca65

Browse files
committed
Version 0.4 after attempt to rebase.
Signed-off-by: Christian Koch <[email protected]>
1 parent af4cbea commit 200ca65

File tree

60 files changed

+4734
-2054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4734
-2054
lines changed

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
/bundles/org.openhab.binding.modbus.kermi/ @KaaNee
238238
/bundles/org.openhab.binding.modbus.sbc/ @fwolter
239239
/bundles/org.openhab.binding.modbus.stiebeleltron/ @pail23
240+
/bundles/org.openhab.binding.modbus.lambda/ @chilobo
240241
/bundles/org.openhab.binding.modbus.studer/ @giovannimirulla
241242
/bundles/org.openhab.binding.modbus.sungrow/ @soenkekueper
242243
/bundles/org.openhab.binding.modbus.sunspec/ @mrbig

bundles/org.openhab.binding.modbus.lambda/README.md

+220-100
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Copyright (c) 2010-2024 Contributors to the openHAB project
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Eclipse Public License 2.0 which is available at
9+
* http://www.eclipse.org/legal/epl-2.0
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
package org.openhab.binding.modbus.lambda.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link BoilerConfiguration} class contains fields mapping
19+
* thing configuration parameters.
20+
*
21+
* @author Paul Frank - Initial contribution
22+
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus
23+
*/
24+
@NonNullByDefault
25+
public class BoilerConfiguration {
26+
27+
/**
28+
* Refresh interval in seconds
29+
*/
30+
private int refresh = 30;
31+
32+
private int maxTries = 3;
33+
// backwards compatibility and tests
34+
35+
/**
36+
* Subindex to calculate the base adress of the modbus registers
37+
*/
38+
private int subindex = 0;
39+
40+
/**
41+
* Gets refresh period in milliseconds
42+
*/
43+
public long getRefreshMillis() {
44+
return refresh * 1000;
45+
}
46+
47+
public int getMaxTries() {
48+
return maxTries;
49+
}
50+
51+
public void setMaxTries(int maxTries) {
52+
this.maxTries = maxTries;
53+
}
54+
55+
public int getSubindex() {
56+
return subindex;
57+
}
58+
59+
public void setSubindex(int subindex) {
60+
this.subindex = subindex;
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Copyright (c) 2010-2024 Contributors to the openHAB project
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Eclipse Public License 2.0 which is available at
9+
* http://www.eclipse.org/legal/epl-2.0
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
package org.openhab.binding.modbus.lambda.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link BufferConfiguration} class contains fields mapping
19+
* thing configuration parameters.
20+
*
21+
* @author Paul Frank - Initial contribution
22+
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus
23+
*/
24+
@NonNullByDefault
25+
public class BufferConfiguration {
26+
/**
27+
* Refresh interval in seconds
28+
*/
29+
private int refresh = 30;
30+
31+
private int maxTries = 3;
32+
// backwards compatibility and tests
33+
34+
/**
35+
* Subindex to calculate the base adress of the modbus registers
36+
*/
37+
private int subindex = 0;
38+
39+
/**
40+
* Gets refresh period in milliseconds
41+
*/
42+
public long getRefreshMillis() {
43+
return refresh * 1000;
44+
}
45+
46+
public int getMaxTries() {
47+
return maxTries;
48+
}
49+
50+
public void setMaxTries(int maxTries) {
51+
this.maxTries = maxTries;
52+
}
53+
54+
public int getSubindex() {
55+
return subindex;
56+
}
57+
58+
public void setSubindex(int subindex) {
59+
this.subindex = subindex;
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* Copyright (c) 2010-2024 Contributors to the openHAB project
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Eclipse Public License 2.0 which is available at
9+
* http://www.eclipse.org/legal/epl-2.0
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
package org.openhab.binding.modbus.lambda.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link GeneralConfiguration} class contains fields mapping
19+
* thing configuration parameters.
20+
*
21+
* @author Paul Frank - Initial contribution
22+
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus
23+
*/
24+
@NonNullByDefault
25+
public class GeneralConfiguration {
26+
/**
27+
* Refresh interval in seconds
28+
*/
29+
private int refresh = 30;
30+
31+
private int maxTries = 3;// backwards compatibility and tests
32+
33+
/**
34+
* Gets refresh period in milliseconds
35+
*/
36+
public long getRefreshMillis() {
37+
return refresh * 1000;
38+
}
39+
40+
public int getMaxTries() {
41+
return maxTries;
42+
}
43+
44+
public void setMaxTries(int maxTries) {
45+
this.maxTries = maxTries;
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Copyright (c) 2010-2024 Contributors to the openHAB project
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Eclipse Public License 2.0 which is available at
9+
* http://www.eclipse.org/legal/epl-2.0
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
package org.openhab.binding.modbus.lambda.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link HeatingCircuitConfiguration} class contains fields mapping
19+
* thing configuration parameters.
20+
*
21+
* @author Paul Frank - Initial contribution
22+
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus
23+
*/
24+
@NonNullByDefault
25+
public class HeatingCircuitConfiguration {
26+
/**
27+
* Refresh interval in seconds
28+
*/
29+
private int refresh = 30;
30+
31+
private int maxTries = 3;
32+
// backwards compatibility and tests
33+
34+
/**
35+
* Subindex to calculate the base adress of the modbus registers
36+
*/
37+
private int subindex = 0;
38+
39+
/**
40+
* Gets refresh period in milliseconds
41+
*/
42+
public long getRefreshMillis() {
43+
return refresh * 1000;
44+
}
45+
46+
public int getMaxTries() {
47+
return maxTries;
48+
}
49+
50+
public void setMaxTries(int maxTries) {
51+
this.maxTries = maxTries;
52+
}
53+
54+
public int getSubindex() {
55+
return subindex;
56+
}
57+
58+
public void setSubindex(int subindex) {
59+
this.subindex = subindex;
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* Copyright (c) 2010-2024 Contributors to the openHAB project
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Eclipse Public License 2.0 which is available at
9+
* http://www.eclipse.org/legal/epl-2.0
10+
*
11+
* SPDX-License-Identifier: EPL-2.0
12+
*/
13+
package org.openhab.binding.modbus.lambda.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link HeatpumpConfiguration} class contains fields mapping
19+
* thing configuration parameters.
20+
*
21+
* @author Paul Frank - Initial contribution
22+
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus
23+
*/
24+
@NonNullByDefault
25+
public class HeatpumpConfiguration {
26+
27+
/**
28+
* Refresh interval in seconds
29+
*/
30+
private int refresh = 30;
31+
32+
private int maxTries = 3;
33+
34+
// backwards compatibility and tests
35+
36+
/**
37+
* Subindex to calculate the base adress of the modbus registers
38+
*/
39+
private int subindex = 0;
40+
41+
/**
42+
* Gets refresh period in milliseconds
43+
*/
44+
public long getRefreshMillis() {
45+
return refresh * 1000;
46+
}
47+
48+
public int getMaxTries() {
49+
return maxTries;
50+
}
51+
52+
public void setMaxTries(int maxTries) {
53+
this.maxTries = maxTries;
54+
}
55+
56+
public int getSubindex() {
57+
return subindex;
58+
}
59+
60+
public void setSubindex(int subindex) {
61+
this.subindex = subindex;
62+
}
63+
}

0 commit comments

Comments
 (0)