Skip to content

Commit 315964a

Browse files
authored
[airq] Air-Q binding Initial contribution (openhab#10048)
Signed-off-by: Aurelio Caliaro <[email protected]>
1 parent 541a71d commit 315964a

File tree

15 files changed

+1977
-0
lines changed

15 files changed

+1977
-0
lines changed

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/bundles/org.openhab.automation.jythonscripting/ @openhab/add-ons-maintainers
1010
/bundles/org.openhab.automation.pidcontroller/ @fwolter
1111
/bundles/org.openhab.binding.adorne/ @theiding
12+
/bundles/org.openhab.binding.airq/ @aurelio1
1213
/bundles/org.openhab.binding.airquality/ @kubawolanin
1314
/bundles/org.openhab.binding.airvisualnode/ @3cky
1415
/bundles/org.openhab.binding.alarmdecoder/ @bobadair @billfor

bom/openhab-addons/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
<artifactId>org.openhab.binding.adorne</artifactId>
3737
<version>${project.version}</version>
3838
</dependency>
39+
<dependency>
40+
<groupId>org.openhab.addons.bundles</groupId>
41+
<artifactId>org.openhab.binding.airq</artifactId>
42+
<version>${project.version}</version>
43+
</dependency>
3944
<dependency>
4045
<groupId>org.openhab.addons.bundles</groupId>
4146
<artifactId>org.openhab.binding.airquality</artifactId>
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This content is produced and maintained by the openHAB project.
2+
3+
* Project home: https://www.openhab.org
4+
5+
== Declared Project Licenses
6+
7+
This program and the accompanying materials are made available under the terms
8+
of the Eclipse Public License 2.0 which is available at
9+
https://www.eclipse.org/legal/epl-2.0/.
10+
11+
== Source Code
12+
13+
https://github.com/openhab/openhab-addons

bundles/org.openhab.binding.airq/README.md

+223
Large diffs are not rendered by default.
Loading
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.openhab.addons.bundles</groupId>
9+
<artifactId>org.openhab.addons.reactor.bundles</artifactId>
10+
<version>3.1.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>org.openhab.binding.airq</artifactId>
14+
15+
<name>openHAB Add-ons :: Bundles :: air-Q Binding</name>
16+
17+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<features name="org.openhab.binding.airq-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
3+
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>
4+
5+
<feature name="openhab-binding-airq" description="air-Q Binding" version="${project.version}">
6+
<feature>openhab-runtime-base</feature>
7+
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.airq/${project.version}</bundle>
8+
</feature>
9+
</features>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright (c) 2010-2021 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.airq.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
import org.openhab.core.thing.ThingTypeUID;
17+
18+
/**
19+
* The {@link AirqBindingConstants} class defines common constants, which are
20+
* used across the whole binding.
21+
*
22+
* @author Aurelio Caliaro - Initial contribution
23+
*/
24+
@NonNullByDefault
25+
public class AirqBindingConstants {
26+
private static final String BINDING_ID = "airq";
27+
public static final ThingTypeUID THING_TYPE_AIRQ = new ThingTypeUID(BINDING_ID, "airq");
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* Copyright (c) 2010-2021 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.airq.internal;
14+
15+
import org.eclipse.jdt.annotation.NonNullByDefault;
16+
17+
/**
18+
* The {@link AirqConfiguration} class contains fields mapping thing configuration parameters.
19+
*
20+
* @author Aurelio Caliaro - Initial contribution
21+
*/
22+
23+
@NonNullByDefault
24+
public class AirqConfiguration {
25+
public String ipAddress = "";
26+
public String password = "";
27+
}

0 commit comments

Comments
 (0)