mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
[freeathome] Rename binding from freeathomesystem (#16718)
* Remove 'System' from the binding name Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
cc439e2b17
commit
f9d9dc2c8e
@ -114,7 +114,7 @@
|
||||
/bundles/org.openhab.binding.folderwatcher/ @goopilot
|
||||
/bundles/org.openhab.binding.folding/ @fa2k
|
||||
/bundles/org.openhab.binding.foobot/ @airboxlab @Hilbrand
|
||||
/bundles/org.openhab.binding.freeathomesystem/ @andrasU
|
||||
/bundles/org.openhab.binding.freeathome/ @andrasU
|
||||
/bundles/org.openhab.binding.freebox/ @lolodomo
|
||||
/bundles/org.openhab.binding.freeboxos/ @clinique
|
||||
/bundles/org.openhab.binding.freecurrency/ @J-N-K
|
||||
|
@ -101,7 +101,7 @@ Things are all discovered automatically and visible on the openHAB UI after push
|
||||
In order to manually configure a Thing:
|
||||
|
||||
```java
|
||||
Bridge freeathomesystem:bridge:mysysap [ ipAddress="...", username="...", password="..." ]
|
||||
Bridge freeathome:bridge:mysysap [ ipAddress="...", username="...", password="..." ]
|
||||
{
|
||||
Thing device ABB700000001
|
||||
Thing device ABB700000012
|
||||
@ -116,20 +116,20 @@ The creation of the openHAB channels to operate the free@home device is happenin
|
||||
Sample for the free@home thermostat device
|
||||
|
||||
```java
|
||||
Switch Livingroom_Thermostat_Switch "Thermostat Siwtch" <temperature> (Livingroom) { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#controller-on-off-request" }
|
||||
Switch LivingRoom_Thermostat_EcoOnOff "Thermostat Eco Activation" <switch> (Livingroom) { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#eco-mode-on-off-request" }
|
||||
Number LivingRoom_Thermostat_MeasuredTemperature "Measured Temperature" <temperature> (Livingroom) ["Temperature"] { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#measured-temperature" }
|
||||
Number LivingRoom_Thermostat_SetpointTemperature "Setpoint Temperature" <temperature> (Livingroom) ["Setpoint", "Temperature"] { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#absolute-setpoint-temperature" }
|
||||
Number LivingRoom_ThermostatHeatingActive "Thermostat Heating Active" <temperature> (Livingroom) ["Status"] { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#heating-active" }
|
||||
Number LivingRoom_ThermostatHeatingDemand "Thermostat Heating Demand" <temperature> (Livingroom) ["Status"] { channel="freeathomesystem:device:312095ad75:ABB700000001:ch0000#status-indication" }
|
||||
Switch Livingroom_Thermostat_Switch "Thermostat Siwtch" <temperature> (Livingroom) { channel="freeathome:device:312095ad75:ABB700000001:ch0000#controller-on-off-request" }
|
||||
Switch LivingRoom_Thermostat_EcoOnOff "Thermostat Eco Activation" <switch> (Livingroom) { channel="freeathome:device:312095ad75:ABB700000001:ch0000#eco-mode-on-off-request" }
|
||||
Number LivingRoom_Thermostat_MeasuredTemperature "Measured Temperature" <temperature> (Livingroom) ["Temperature"] { channel="freeathome:device:312095ad75:ABB700000001:ch0000#measured-temperature" }
|
||||
Number LivingRoom_Thermostat_SetpointTemperature "Setpoint Temperature" <temperature> (Livingroom) ["Setpoint", "Temperature"] { channel="freeathome:device:312095ad75:ABB700000001:ch0000#absolute-setpoint-temperature" }
|
||||
Number LivingRoom_ThermostatHeatingActive "Thermostat Heating Active" <temperature> (Livingroom) ["Status"] { channel="freeathome:device:312095ad75:ABB700000001:ch0000#heating-active" }
|
||||
Number LivingRoom_ThermostatHeatingDemand "Thermostat Heating Demand" <temperature> (Livingroom) ["Status"] { channel="freeathome:device:312095ad75:ABB700000001:ch0000#status-indication" }
|
||||
```
|
||||
|
||||
Sample for the free@home device for switch
|
||||
|
||||
```java
|
||||
Switch Livingroom_Switch "Livingroom Switch" <switch> (Livingroom) ["Light"] { channel="freeathomesystem:device:312095ad75:ABB700000012:ch0000#switch-on-off" }
|
||||
Switch Livingroom_Lamp "Livingroom Lamp" <switch> (Livingroom) ["Light"] { channel="freeathomesystem:device:312095ad75:ABB700000012:ch0006#switch-on-off" }
|
||||
Switch Livingroom_Aux "Livingroom Aux Switch" <switch> (Livingroom) ["Light"] { channel="freeathomesystem:device:312095ad75:ABB700000012:ch000b#switch-on-off" }
|
||||
Switch Livingroom_Switch "Livingroom Switch" <switch> (Livingroom) ["Light"] { channel="freeathome:device:312095ad75:ABB700000012:ch0000#switch-on-off" }
|
||||
Switch Livingroom_Lamp "Livingroom Lamp" <switch> (Livingroom) ["Light"] { channel="freeathome:device:312095ad75:ABB700000012:ch0006#switch-on-off" }
|
||||
Switch Livingroom_Aux "Livingroom Aux Switch" <switch> (Livingroom) ["Light"] { channel="freeathome:device:312095ad75:ABB700000012:ch000b#switch-on-off" }
|
||||
```
|
||||
|
||||
# Communities
|
@ -10,8 +10,8 @@
|
||||
<version>4.2.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>org.openhab.binding.freeathomesystem</artifactId>
|
||||
<artifactId>org.openhab.binding.freeathome</artifactId>
|
||||
|
||||
<name>openHAB Add-ons :: Bundles :: FreeAtHomeSystem Binding</name>
|
||||
<name>openHAB Add-ons :: Bundles :: FreeAtHome Binding</name>
|
||||
|
||||
</project>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<features name="org.openhab.binding.freeathome-${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-freeathome" description="FreeAtHome Binding" version="${project.version}">
|
||||
<feature>openhab-runtime-base</feature>
|
||||
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.freeathome/${project.version}</bundle>
|
||||
</feature>
|
||||
</features>
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal;
|
||||
package org.openhab.binding.freeathome.internal;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@ -18,17 +18,17 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.thing.ThingTypeUID;
|
||||
|
||||
/**
|
||||
* The {@link FreeAtHomeSystemBindingConstants} class defines common constants, which are
|
||||
* The {@link FreeAtHomeBindingConstants} class defines common constants, which are
|
||||
* used across the whole binding.
|
||||
*
|
||||
* @author Andras Uhrin - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class FreeAtHomeSystemBindingConstants {
|
||||
public class FreeAtHomeBindingConstants {
|
||||
|
||||
public static final String CONFIG_DESCRIPTION_URI_THING_PREFIX = "thing-type";
|
||||
|
||||
public static final String BINDING_ID = "freeathomesystem";
|
||||
public static final String BINDING_ID = "freeathome";
|
||||
|
||||
// List of all Thing Type UIDs
|
||||
public static final String BRIDGE_TYPE_ID = "gateway";
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal;
|
||||
package org.openhab.binding.freeathome.internal;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.HashMap;
|
||||
@ -22,9 +22,9 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathomesystem.internal.handler.FreeAtHomeBridgeHandler;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.core.config.discovery.AbstractThingHandlerDiscoveryService;
|
||||
import org.openhab.core.config.discovery.DiscoveryResult;
|
||||
import org.openhab.core.config.discovery.DiscoveryResultBuilder;
|
||||
@ -34,14 +34,14 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The {@link FreeAtHomeSystemDiscoveryService} is responsible for performing discovery of things
|
||||
* The {@link FreeAtHomeDiscoveryService} is responsible for performing discovery of things
|
||||
*
|
||||
* @author Andras Uhrin - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class FreeAtHomeSystemDiscoveryService extends AbstractThingHandlerDiscoveryService<FreeAtHomeBridgeHandler> {
|
||||
public class FreeAtHomeDiscoveryService extends AbstractThingHandlerDiscoveryService<FreeAtHomeBridgeHandler> {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(FreeAtHomeSystemDiscoveryService.class);
|
||||
private final Logger logger = LoggerFactory.getLogger(FreeAtHomeDiscoveryService.class);
|
||||
private @Nullable ScheduledFuture<?> backgroundDiscoveryJob = null;
|
||||
|
||||
private static final long BACKGROUND_DISCOVERY_DELAY = 1L;
|
||||
@ -60,8 +60,7 @@ public class FreeAtHomeSystemDiscoveryService extends AbstractThingHandlerDiscov
|
||||
for (int i = 0; (i < deviceList.size()) && !isScanTerminated; i++) {
|
||||
FreeAtHomeDeviceDescription device = thingHandler.getFreeatHomeDeviceDescription(deviceList.get(i));
|
||||
|
||||
ThingUID uid = new ThingUID(FreeAtHomeSystemBindingConstants.DEVICE_TYPE_UID, bridgeUID,
|
||||
device.deviceId);
|
||||
ThingUID uid = new ThingUID(FreeAtHomeBindingConstants.DEVICE_TYPE_UID, bridgeUID, device.deviceId);
|
||||
Map<String, Object> properties = new HashMap<>(1);
|
||||
properties.put("deviceId", device.deviceId);
|
||||
properties.put("interface", device.interfaceType);
|
||||
@ -88,18 +87,17 @@ public class FreeAtHomeSystemDiscoveryService extends AbstractThingHandlerDiscov
|
||||
}
|
||||
};
|
||||
|
||||
public FreeAtHomeSystemDiscoveryService(int timeout) {
|
||||
super(FreeAtHomeBridgeHandler.class, FreeAtHomeSystemBindingConstants.SUPPORTED_THING_TYPES_UIDS, timeout,
|
||||
false);
|
||||
public FreeAtHomeDiscoveryService(int timeout) {
|
||||
super(FreeAtHomeBridgeHandler.class, FreeAtHomeBindingConstants.SUPPORTED_THING_TYPES_UIDS, timeout, false);
|
||||
}
|
||||
|
||||
public FreeAtHomeSystemDiscoveryService() {
|
||||
public FreeAtHomeDiscoveryService() {
|
||||
this(90);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<ThingTypeUID> getSupportedThingTypes() {
|
||||
return Set.of(FreeAtHomeSystemBindingConstants.BRIDGE_TYPE_UID);
|
||||
return Set.of(FreeAtHomeBindingConstants.BRIDGE_TYPE_UID);
|
||||
}
|
||||
|
||||
@Override
|
@ -10,17 +10,17 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal;
|
||||
package org.openhab.binding.freeathome.internal;
|
||||
|
||||
import static org.openhab.binding.freeathomesystem.internal.FreeAtHomeSystemBindingConstants.*;
|
||||
import static org.openhab.binding.freeathome.internal.FreeAtHomeBindingConstants.*;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.eclipse.jetty.client.HttpClient;
|
||||
import org.openhab.binding.freeathomesystem.internal.handler.FreeAtHomeBridgeHandler;
|
||||
import org.openhab.binding.freeathomesystem.internal.handler.FreeAtHomeDeviceHandler;
|
||||
import org.openhab.binding.freeathomesystem.internal.type.FreeAtHomeChannelTypeProvider;
|
||||
import org.openhab.binding.freeathomesystem.internal.type.FreeAtHomeThingTypeProvider;
|
||||
import org.openhab.binding.freeathome.internal.handler.FreeAtHomeBridgeHandler;
|
||||
import org.openhab.binding.freeathome.internal.handler.FreeAtHomeDeviceHandler;
|
||||
import org.openhab.binding.freeathome.internal.type.FreeAtHomeChannelTypeProvider;
|
||||
import org.openhab.binding.freeathome.internal.type.FreeAtHomeThingTypeProvider;
|
||||
import org.openhab.core.i18n.LocaleProvider;
|
||||
import org.openhab.core.i18n.TranslationProvider;
|
||||
import org.openhab.core.io.net.http.HttpClientFactory;
|
||||
@ -39,16 +39,16 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* The {@link FreeAtHomeSystemHandlerFactory} is responsible for creating things and thing
|
||||
* The {@link FreeAtHomeHandlerFactory} is responsible for creating things and thing
|
||||
* handlers.
|
||||
*
|
||||
* @author Andras Uhrin - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(configurationPid = "binding.freeathomesystem", service = ThingHandlerFactory.class)
|
||||
public class FreeAtHomeSystemHandlerFactory extends BaseThingHandlerFactory {
|
||||
@Component(configurationPid = "binding.freeathome", service = ThingHandlerFactory.class)
|
||||
public class FreeAtHomeHandlerFactory extends BaseThingHandlerFactory {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(FreeAtHomeSystemHandlerFactory.class);
|
||||
private final Logger logger = LoggerFactory.getLogger(FreeAtHomeHandlerFactory.class);
|
||||
|
||||
private final HttpClient httpClient;
|
||||
private final FreeAtHomeChannelTypeProvider channelTypeProvider;
|
||||
@ -56,7 +56,7 @@ public class FreeAtHomeSystemHandlerFactory extends BaseThingHandlerFactory {
|
||||
private final LocaleProvider localeProvider;
|
||||
|
||||
@Activate
|
||||
public FreeAtHomeSystemHandlerFactory(@Reference FreeAtHomeThingTypeProvider thingTypeProvider,
|
||||
public FreeAtHomeHandlerFactory(@Reference FreeAtHomeThingTypeProvider thingTypeProvider,
|
||||
@Reference FreeAtHomeChannelTypeProvider channelTypeProvider, @Reference TranslationProvider i18nProvider,
|
||||
@Reference LocaleProvider localeProvider, @Reference HttpClientFactory httpClientFactory,
|
||||
ComponentContext componentContext) {
|
||||
@ -66,7 +66,7 @@ public class FreeAtHomeSystemHandlerFactory extends BaseThingHandlerFactory {
|
||||
this.localeProvider = localeProvider;
|
||||
|
||||
// create httpClient
|
||||
httpClient = httpClientFactory.createHttpClient(FreeAtHomeSystemBindingConstants.BINDING_ID);
|
||||
httpClient = httpClientFactory.createHttpClient(FreeAtHomeBindingConstants.BINDING_ID);
|
||||
|
||||
// Configure client
|
||||
httpClient.setFollowRedirects(false);
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.configuration;
|
||||
package org.openhab.binding.freeathome.internal.configuration;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.configuration;
|
||||
package org.openhab.binding.freeathome.internal.configuration;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.datamodel;
|
||||
package org.openhab.binding.freeathome.internal.datamodel;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
@ -10,18 +10,18 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.datamodel;
|
||||
package org.openhab.binding.freeathome.internal.datamodel;
|
||||
|
||||
import static org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDatapoint.*;
|
||||
import static org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDatapoint.*;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeGeneralException;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.PidTranslationUtils;
|
||||
import org.openhab.binding.freeathomesystem.internal.valuestateconverter.BooleanValueStateConverter;
|
||||
import org.openhab.binding.freeathomesystem.internal.valuestateconverter.DecimalValueStateConverter;
|
||||
import org.openhab.binding.freeathomesystem.internal.valuestateconverter.ShuttercontrolValueStateConverter;
|
||||
import org.openhab.binding.freeathomesystem.internal.valuestateconverter.ValueStateConverter;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeGeneralException;
|
||||
import org.openhab.binding.freeathome.internal.util.PidTranslationUtils;
|
||||
import org.openhab.binding.freeathome.internal.valuestateconverter.BooleanValueStateConverter;
|
||||
import org.openhab.binding.freeathome.internal.valuestateconverter.DecimalValueStateConverter;
|
||||
import org.openhab.binding.freeathome.internal.valuestateconverter.ShuttercontrolValueStateConverter;
|
||||
import org.openhab.binding.freeathome.internal.valuestateconverter.ValueStateConverter;
|
||||
import org.openhab.core.library.CoreItemFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
@ -10,18 +10,18 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.datamodel;
|
||||
package org.openhab.binding.freeathome.internal.datamodel;
|
||||
|
||||
import static org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDatapoint.*;
|
||||
import static org.openhab.binding.freeathomesystem.internal.util.FidTranslationUtils.*;
|
||||
import static org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDatapoint.*;
|
||||
import static org.openhab.binding.freeathome.internal.util.FidTranslationUtils.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FidTranslationUtils;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeGeneralException;
|
||||
import org.openhab.binding.freeathome.internal.util.FidTranslationUtils;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeGeneralException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.datamodel;
|
||||
package org.openhab.binding.freeathome.internal.datamodel;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.handler;
|
||||
package org.openhab.binding.freeathome.internal.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
@ -50,10 +50,10 @@ import org.eclipse.jetty.websocket.api.StatusCode;
|
||||
import org.eclipse.jetty.websocket.api.WebSocketListener;
|
||||
import org.eclipse.jetty.websocket.client.ClientUpgradeRequest;
|
||||
import org.eclipse.jetty.websocket.client.WebSocketClient;
|
||||
import org.openhab.binding.freeathomesystem.internal.FreeAtHomeSystemDiscoveryService;
|
||||
import org.openhab.binding.freeathomesystem.internal.configuration.FreeAtHomeBridgeHandlerConfiguration;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.binding.freeathome.internal.FreeAtHomeDiscoveryService;
|
||||
import org.openhab.binding.freeathome.internal.configuration.FreeAtHomeBridgeHandlerConfiguration;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.core.thing.Bridge;
|
||||
import org.openhab.core.thing.ChannelUID;
|
||||
import org.openhab.core.thing.ThingStatus;
|
||||
@ -128,7 +128,7 @@ public class FreeAtHomeBridgeHandler extends BaseBridgeHandler implements WebSoc
|
||||
|
||||
@Override
|
||||
public Collection<Class<? extends ThingHandlerService>> getServices() {
|
||||
return List.of(FreeAtHomeSystemDiscoveryService.class);
|
||||
return List.of(FreeAtHomeDiscoveryService.class);
|
||||
}
|
||||
|
||||
/**
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.handler;
|
||||
package org.openhab.binding.freeathome.internal.handler;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
@ -22,16 +22,16 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.binding.freeathomesystem.internal.configuration.FreeAtHomeDeviceHandlerConfiguration;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDatapoint;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDatapointGroup;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDeviceChannel;
|
||||
import org.openhab.binding.freeathomesystem.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathomesystem.internal.type.FreeAtHomeChannelTypeProvider;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeGeneralException;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.binding.freeathomesystem.internal.util.UidUtils;
|
||||
import org.openhab.binding.freeathomesystem.internal.valuestateconverter.ValueStateConverter;
|
||||
import org.openhab.binding.freeathome.internal.configuration.FreeAtHomeDeviceHandlerConfiguration;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDatapoint;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDatapointGroup;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDeviceChannel;
|
||||
import org.openhab.binding.freeathome.internal.datamodel.FreeAtHomeDeviceDescription;
|
||||
import org.openhab.binding.freeathome.internal.type.FreeAtHomeChannelTypeProvider;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeGeneralException;
|
||||
import org.openhab.binding.freeathome.internal.util.FreeAtHomeHttpCommunicationException;
|
||||
import org.openhab.binding.freeathome.internal.util.UidUtils;
|
||||
import org.openhab.binding.freeathome.internal.valuestateconverter.ValueStateConverter;
|
||||
import org.openhab.core.i18n.LocaleProvider;
|
||||
import org.openhab.core.i18n.TranslationProvider;
|
||||
import org.openhab.core.library.types.StopMoveType;
|
||||
@ -71,7 +71,7 @@ import org.slf4j.LoggerFactory;
|
||||
@NonNullByDefault
|
||||
public class FreeAtHomeDeviceHandler extends BaseThingHandler implements FreeAtHomeDeviceStateListener {
|
||||
|
||||
private static final String CHANNEL_URI = "channel-type:freeathomesystem:config";
|
||||
private static final String CHANNEL_URI = "channel-type:freeathome:config";
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(FreeAtHomeDeviceHandler.class);
|
||||
private FreeAtHomeDeviceDescription device = new FreeAtHomeDeviceDescription();
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.handler;
|
||||
package org.openhab.binding.freeathome.internal.handler;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.type;
|
||||
package org.openhab.binding.freeathome.internal.type;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.thing.type.ChannelType;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.type;
|
||||
package org.openhab.binding.freeathome.internal.type;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.type;
|
||||
package org.openhab.binding.freeathome.internal.type;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.thing.binding.ThingTypeProvider;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.type;
|
||||
package org.openhab.binding.freeathome.internal.type;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import java.util.Objects;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import java.util.Objects;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -10,9 +10,9 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.util;
|
||||
package org.openhab.binding.freeathome.internal.util;
|
||||
|
||||
import static org.openhab.binding.freeathomesystem.internal.FreeAtHomeSystemBindingConstants.*;
|
||||
import static org.openhab.binding.freeathome.internal.FreeAtHomeBindingConstants.*;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.thing.ThingTypeUID;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.valuestateconverter;
|
||||
package org.openhab.binding.freeathome.internal.valuestateconverter;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.library.types.OnOffType;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.valuestateconverter;
|
||||
package org.openhab.binding.freeathome.internal.valuestateconverter;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.library.types.OnOffType;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.valuestateconverter;
|
||||
package org.openhab.binding.freeathome.internal.valuestateconverter;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.library.types.DecimalType;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.valuestateconverter;
|
||||
package org.openhab.binding.freeathome.internal.valuestateconverter;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.library.types.StopMoveType;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.openhab.binding.freeathomesystem.internal.valuestateconverter;
|
||||
package org.openhab.binding.freeathome.internal.valuestateconverter;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.core.types.State;
|
@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon:addon id="freeathomesystem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<addon:addon id="freeathome" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:addon="https://openhab.org/schemas/addon/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/addon/v1.0.0 https://openhab.org/schemas/addon-1.0.0.xsd">
|
||||
|
||||
<type>binding</type>
|
||||
<name>FreeAtHomeSystem Binding</name>
|
||||
<name>FreeAtHome Binding</name>
|
||||
<description>This is the binding for free@home system.</description>
|
||||
<connection>local</connection>
|
||||
</addon:addon>
|
@ -1,27 +1,27 @@
|
||||
# add-on
|
||||
|
||||
addon.freeathomesystem.name = FreeAtHomeSystem Binding
|
||||
addon.freeathomesystem.description = This is the binding for free@home system.
|
||||
addon.freeathome.name = FreeAtHome Binding
|
||||
addon.freeathome.description = This is the binding for free@home system.
|
||||
|
||||
# thing types
|
||||
|
||||
thing-type.freeathomesystem.device.label = free@home Device
|
||||
thing-type.freeathomesystem.device.description = This represents the generic free@home device
|
||||
thing-type.freeathomesystem.gateway.label = free@home Gateway
|
||||
thing-type.freeathomesystem.gateway.description = This gateway represents the free@home Gateway
|
||||
thing-type.freeathome.device.label = free@home Device
|
||||
thing-type.freeathome.device.description = This represents the generic free@home device
|
||||
thing-type.freeathome.gateway.label = free@home Gateway
|
||||
thing-type.freeathome.gateway.description = This gateway represents the free@home Gateway
|
||||
|
||||
# thing types config
|
||||
|
||||
thing-type.config.freeathomesystem.device.deviceId.label = Device Id
|
||||
thing-type.config.freeathomesystem.device.deviceId.description = This is the unique id of the free@home device (Please do not modify after the Thing is generated)
|
||||
thing-type.config.freeathomesystem.gateway.group.identification.label = SysAP Setting
|
||||
thing-type.config.freeathomesystem.gateway.group.identification.description = SysAP network address and user settings
|
||||
thing-type.config.freeathomesystem.gateway.ipAddress.label = Sysap IP Address
|
||||
thing-type.config.freeathomesystem.gateway.ipAddress.description = IP Address of the Busch-Jaeger Gateway
|
||||
thing-type.config.freeathomesystem.gateway.password.label = Password
|
||||
thing-type.config.freeathomesystem.gateway.password.description = Password for gateway
|
||||
thing-type.config.freeathomesystem.gateway.username.label = User Name
|
||||
thing-type.config.freeathomesystem.gateway.username.description = The login name
|
||||
thing-type.config.freeathome.device.deviceId.label = Device Id
|
||||
thing-type.config.freeathome.device.deviceId.description = This is the unique id of the free@home device (Please do not modify after the Thing is generated)
|
||||
thing-type.config.freeathome.gateway.group.identification.label = SysAP Setting
|
||||
thing-type.config.freeathome.gateway.group.identification.description = SysAP network address and user settings
|
||||
thing-type.config.freeathome.gateway.ipAddress.label = Sysap IP Address
|
||||
thing-type.config.freeathome.gateway.ipAddress.description = IP Address of the Busch-Jaeger Gateway
|
||||
thing-type.config.freeathome.gateway.password.label = Password
|
||||
thing-type.config.freeathome.gateway.password.description = Password for gateway
|
||||
thing-type.config.freeathome.gateway.username.label = User Name
|
||||
thing-type.config.freeathome.gateway.username.description = The login name
|
||||
|
||||
# localized error text
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="freeathomesystem"
|
||||
<thing:thing-descriptions bindingId="freeathome"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="freeathomesystem"
|
||||
<thing:thing-descriptions bindingId="freeathome"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<features name="org.openhab.binding.freeathomesystem-${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-freeathomesystem" description="FreeAtHomeSystem Binding" version="${project.version}">
|
||||
<feature>openhab-runtime-base</feature>
|
||||
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.freeathomesystem/${project.version}</bundle>
|
||||
</feature>
|
||||
</features>
|
@ -146,7 +146,7 @@
|
||||
<module>org.openhab.binding.folderwatcher</module>
|
||||
<module>org.openhab.binding.folding</module>
|
||||
<module>org.openhab.binding.foobot</module>
|
||||
<module>org.openhab.binding.freeathomesystem</module>
|
||||
<module>org.openhab.binding.freeathome</module>
|
||||
<module>org.openhab.binding.freebox</module>
|
||||
<module>org.openhab.binding.freeboxos</module>
|
||||
<module>org.openhab.binding.freecurrency</module>
|
||||
|
Loading…
Reference in New Issue
Block a user