Remove SmartHome leftovers (#9283)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -36,7 +36,7 @@ import org.openhab.core.thing.type.ChannelGroupTypeBuilder;
|
||||
import org.openhab.core.thing.type.ChannelGroupTypeUID;
|
||||
|
||||
/**
|
||||
* A HomeAssistant component is comparable to an ESH channel group.
|
||||
* A HomeAssistant component is comparable to a channel group.
|
||||
* It has a name and consists of multiple channels.
|
||||
*
|
||||
* @author David Graeff - Initial contribution
|
||||
@@ -61,7 +61,7 @@ public abstract class AbstractComponent<C extends BaseChannelConfiguration> {
|
||||
protected boolean configSeen;
|
||||
|
||||
/**
|
||||
* Provide a thingUID and HomeAssistant topic ID to determine the ESH channel group UID and type.
|
||||
* Provide a thingUID and HomeAssistant topic ID to determine the channel group UID and type.
|
||||
*
|
||||
* @param thing A ThingUID
|
||||
* @param haID A HomeAssistant topic ID
|
||||
@@ -147,14 +147,14 @@ public abstract class AbstractComponent<C extends BaseChannelConfiguration> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Each HomeAssistant component corresponds to an ESH Channel Group Type.
|
||||
* Each HomeAssistant component corresponds to a Channel Group Type.
|
||||
*/
|
||||
public ChannelGroupTypeUID groupTypeUID() {
|
||||
return channelGroupTypeUID;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique id of this component within the ESH framework.
|
||||
* The unique id of this component.
|
||||
*/
|
||||
public ChannelGroupUID uid() {
|
||||
return channelGroupUID;
|
||||
@@ -168,7 +168,7 @@ public abstract class AbstractComponent<C extends BaseChannelConfiguration> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Each component consists of multiple ESH Channels.
|
||||
* Each component consists of multiple Channels.
|
||||
*/
|
||||
public Map<String, CChannel> channelTypes() {
|
||||
return channels;
|
||||
@@ -176,7 +176,7 @@ public abstract class AbstractComponent<C extends BaseChannelConfiguration> {
|
||||
|
||||
/**
|
||||
* Return a components channel. A HomeAssistant MQTT component consists of multiple functions
|
||||
* and those are mapped to one or more ESH channels. The channel IDs are constants within the
|
||||
* and those are mapped to one or more channels. The channel IDs are constants within the
|
||||
* derived Component, like the {@link ComponentSwitch#switchChannelID}.
|
||||
*
|
||||
* @param channelID The channel ID
|
||||
|
||||
@@ -42,12 +42,12 @@ import org.openhab.core.types.StateDescription;
|
||||
|
||||
/**
|
||||
* An {@link AbstractComponent}s derived class consists of one or multiple channels.
|
||||
* Each component channel consists of the determined ESH channel type, channel type UID and the
|
||||
* ESH channel description itself as well as the the channels state.
|
||||
* Each component channel consists of the determined channel type, channel type UID and the
|
||||
* channel description itself as well as the the channels state.
|
||||
*
|
||||
* After the discovery process has completed and the tree of components and component channels
|
||||
* have been built up, the channel types are registered to a custom channel type provider
|
||||
* before adding the channel descriptions to the ESH Thing themselves.
|
||||
* before adding the channel descriptions to the Thing themselves.
|
||||
* <br>
|
||||
* <br>
|
||||
* An object of this class creates the required {@link ChannelType} and {@link ChannelTypeUID} as well
|
||||
@@ -60,8 +60,8 @@ public class CChannel {
|
||||
private static final String JINJA = "JINJA";
|
||||
|
||||
private final ChannelUID channelUID;
|
||||
private final ChannelState channelState; // Channel state (value)
|
||||
private final Channel channel; // ESH Channel
|
||||
private final ChannelState channelState;
|
||||
private final Channel channel;
|
||||
private final ChannelType type;
|
||||
private final ChannelTypeUID channelTypeUID;
|
||||
private final ChannelStateUpdateListener channelStateUpdateListener;
|
||||
@@ -191,8 +191,8 @@ public class CChannel {
|
||||
|
||||
public CChannel build(boolean addToComponent) {
|
||||
ChannelUID channelUID;
|
||||
ChannelState channelState; // Channel state (value)
|
||||
Channel channel; // ESH Channel
|
||||
ChannelState channelState;
|
||||
Channel channel;
|
||||
ChannelType type;
|
||||
ChannelTypeUID channelTypeUID;
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ import com.google.gson.GsonBuilder;
|
||||
* The specification does not cover the case of disappearing Components. This handler doesn't as well therefore.<br>
|
||||
* <br>
|
||||
*
|
||||
* A Component Instance equals an ESH Channel Group and the Component parts equal ESH Channels.<br>
|
||||
* A Component Instance equals a Channel Group and the Component parts equal Channels.<br>
|
||||
* <br>
|
||||
*
|
||||
* If a Components configuration changes, the known ChannelGroupType and ChannelTypes are replaced with the new ones.
|
||||
|
||||
Reference in New Issue
Block a user