-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openhab:main' into boschspexor-main
- Loading branch information
Showing
72 changed files
with
3,068 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...ipting/src/main/java/org/openhab/automation/jsscripting/internal/scope/ClassExtender.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
236 changes: 118 additions & 118 deletions
236
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/i18n/awattar_de.properties
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This content is produced and maintained by the openHAB project. | ||
|
||
* Project home: https://www.openhab.org | ||
|
||
== Declared Project Licenses | ||
|
||
This program and the accompanying materials are made available under the terms | ||
of the Eclipse Public License 2.0 which is available at | ||
https://www.eclipse.org/legal/epl-2.0/. | ||
|
||
== Source Code | ||
|
||
https://github.com/openhab/openhab-addons |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.openhab.addons.bundles</groupId> | ||
<artifactId>org.openhab.addons.reactor.bundles</artifactId> | ||
<version>3.3.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>org.openhab.binding.evcc</artifactId> | ||
|
||
<name>openHAB Add-ons :: Bundles :: evcc Binding</name> | ||
|
||
</project> |
9 changes: 9 additions & 0 deletions
9
bundles/org.openhab.binding.evcc/src/main/feature/feature.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features name="org.openhab.binding.evcc-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0"> | ||
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository> | ||
|
||
<feature name="openhab-binding-evcc" description="evcc Binding" version="${project.version}"> | ||
<feature>openhab-runtime-base</feature> | ||
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.evcc/${project.version}</bundle> | ||
</feature> | ||
</features> |
131 changes: 131 additions & 0 deletions
131
...ab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/EvccBindingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.evcc.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
import org.openhab.core.thing.ThingTypeUID; | ||
import org.openhab.core.thing.type.ChannelTypeUID; | ||
|
||
/** | ||
* The {@link EvccBindingConstants} class defines common constants, which are | ||
* used across the whole binding. | ||
* | ||
* @author Florian Hotze - Initial contribution | ||
*/ | ||
@NonNullByDefault | ||
public class EvccBindingConstants { | ||
|
||
private static final String BINDING_ID = "evcc"; | ||
|
||
// List of all Thing Type UIDs | ||
public static final ThingTypeUID THING_TYPE_DEVICE = new ThingTypeUID(BINDING_ID, "device"); | ||
|
||
// List of all Channel Type UIDs | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_BATTERY_POWER = new ChannelTypeUID(BINDING_ID, "batteryPower"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_BATTERY_SOC = new ChannelTypeUID(BINDING_ID, "batterySoC"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_BATTERY_PRIORITY_SOC = new ChannelTypeUID(BINDING_ID, | ||
"batteryPrioritySoC"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_GRID_POWER = new ChannelTypeUID(BINDING_ID, "gridPower"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_HOME_POWER = new ChannelTypeUID(BINDING_ID, "homePower"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_PV_POWER = new ChannelTypeUID(BINDING_ID, "pvPower"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_ACTIVE_PHASES = new ChannelTypeUID(BINDING_ID, | ||
"activePhases"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGE_CURRENT = new ChannelTypeUID(BINDING_ID, | ||
"chargeCurrent"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGE_DURATION = new ChannelTypeUID(BINDING_ID, | ||
"chargeDuration"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGE_POWER = new ChannelTypeUID(BINDING_ID, | ||
"chargePower"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGE_REMAINING_DURATION = new ChannelTypeUID( | ||
BINDING_ID, "chargeRemainingDuration"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGE_REMAINING_ENERGY = new ChannelTypeUID( | ||
BINDING_ID, "chargeRemainingEnergy"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGED_ENERGY = new ChannelTypeUID(BINDING_ID, | ||
"chargedEnergy"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CHARGING = new ChannelTypeUID(BINDING_ID, "charging"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CONNECTED = new ChannelTypeUID(BINDING_ID, | ||
"vehicleConnected"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_CONNECTED_DURATION = new ChannelTypeUID(BINDING_ID, | ||
"vehicleConnectedDuration"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_ENABLED = new ChannelTypeUID(BINDING_ID, "enabled"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_HAS_VEHICLE = new ChannelTypeUID(BINDING_ID, | ||
"hasVehicle"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_MAX_CURRENT = new ChannelTypeUID(BINDING_ID, | ||
"maxCurrent"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_MIN_CURRENT = new ChannelTypeUID(BINDING_ID, | ||
"minCurrent"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_MIN_SOC = new ChannelTypeUID(BINDING_ID, "minSoC"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_MODE = new ChannelTypeUID(BINDING_ID, "mode"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_PHASES = new ChannelTypeUID(BINDING_ID, "phases"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_TARGET_SOC = new ChannelTypeUID(BINDING_ID, | ||
"targetSoC"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_TARGET_TIME = new ChannelTypeUID(BINDING_ID, | ||
"targetTime"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_TARGET_TIME_ENABLED = new ChannelTypeUID(BINDING_ID, | ||
"targetTimeEnabled"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_TITLE = new ChannelTypeUID(BINDING_ID, "title"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_CAPACITY = new ChannelTypeUID(BINDING_ID, | ||
"vehicleCapacity"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_ODOMETER = new ChannelTypeUID(BINDING_ID, | ||
"vehicleOdometer"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_PRESENT = new ChannelTypeUID(BINDING_ID, | ||
"vehiclePresent"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_RANGE = new ChannelTypeUID(BINDING_ID, | ||
"vehicleRange"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_SOC = new ChannelTypeUID(BINDING_ID, | ||
"vehicleSoC"); | ||
public static final ChannelTypeUID CHANNEL_TYPE_UID_LOADPOINT_VEHICLE_TITLE = new ChannelTypeUID(BINDING_ID, | ||
"vehicleTitle"); | ||
|
||
// List of all Channel ids | ||
public static final String CHANNEL_BATTERY_POWER = "batteryPower"; | ||
public static final String CHANNEL_BATTERY_SOC = "batterySoC"; | ||
public static final String CHANNEL_BATTERY_PRIORITY_SOC = "batteryPrioritySoC"; | ||
public static final String CHANNEL_GRID_POWER = "gridPower"; | ||
public static final String CHANNEL_HOME_POWER = "homePower"; | ||
public static final String CHANNEL_PV_POWER = "pvPower"; | ||
public static final String CHANNEL_LOADPOINT_ACTIVE_PHASES = "activePhases"; | ||
public static final String CHANNEL_LOADPOINT_CHARGE_CURRENT = "chargeCurrent"; | ||
public static final String CHANNEL_LOADPOINT_CHARGE_DURATION = "chargeDuration"; | ||
public static final String CHANNEL_LOADPOINT_CHARGE_POWER = "chargePower"; | ||
public static final String CHANNEL_LOADPOINT_CHARGE_REMAINING_DURATION = "chargeRemainingDuration"; | ||
public static final String CHANNEL_LOADPOINT_CHARGE_REMAINING_ENERGY = "chargeRemainingEnergy"; | ||
public static final String CHANNEL_LOADPOINT_CHARGED_ENERGY = "chargedEnergy"; | ||
public static final String CHANNEL_LOADPOINT_CHARGING = "charging"; | ||
public static final String CHANNEL_LOADPOINT_CONNECTED = "vehicleConnected"; | ||
public static final String CHANNEL_LOADPOINT_CONNECTED_DURATION = "vehicleConnectedDuration"; | ||
public static final String CHANNEL_LOADPOINT_ENABLED = "enabled"; | ||
public static final String CHANNEL_LOADPOINT_HAS_VEHICLE = "hasVehicle"; | ||
public static final String CHANNEL_LOADPOINT_MAX_CURRENT = "maxCurrent"; | ||
public static final String CHANNEL_LOADPOINT_MIN_CURRENT = "minCurrent"; | ||
public static final String CHANNEL_LOADPOINT_MIN_SOC = "minSoC"; | ||
public static final String CHANNEL_LOADPOINT_MODE = "mode"; | ||
public static final String CHANNEL_LOADPOINT_PHASES = "phases"; | ||
public static final String CHANNEL_LOADPOINT_TARGET_SOC = "targetSoC"; | ||
public static final String CHANNEL_LOADPOINT_TARGET_TIME = "targetTime"; | ||
/** | ||
* Whether a target time is set on loadpoint. | ||
*/ | ||
public static final String CHANNEL_LOADPOINT_TARGET_TIME_ENABLED = "targetTimeEnabled"; | ||
public static final String CHANNEL_LOADPOINT_TITLE = "title"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_CAPACITY = "vehicleCapacity"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_ODOMETER = "vehicleOdometer"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_PRESENT = "vehiclePresent"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_RANGE = "vehicleRange"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_SOC = "vehicleSoC"; | ||
public static final String CHANNEL_LOADPOINT_VEHICLE_TITLE = "vehicleTitle"; | ||
|
||
public static final int CONNECTION_TIMEOUT_MILLISEC = 5000; | ||
public static final int LONG_CONNECTION_TIMEOUT_MILLISEC = 60000; | ||
public static final String EVCC_REST_API = "/api/"; | ||
} |
34 changes: 34 additions & 0 deletions
34
...enhab.binding.evcc/src/main/java/org/openhab/binding/evcc/internal/EvccConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.evcc.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
import org.eclipse.jdt.annotation.Nullable; | ||
|
||
/** | ||
* The {@link EvccConfiguration} class contains fields mapping thing configuration parameters. | ||
* | ||
* @author Florian Hotze - Initial contribution | ||
*/ | ||
@NonNullByDefault | ||
public class EvccConfiguration { | ||
|
||
/** | ||
* URL of the evcc instance, e.g. https://demo.evcc.io | ||
*/ | ||
public @Nullable String url; | ||
/** | ||
* Interval for state fetching in seconds. | ||
*/ | ||
public int refreshInterval = 60; | ||
} |
Oops, something went wrong.