public class KeyChannel extends AbstractDeviceHandler
conn| Constructor and Description |
|---|
KeyChannel(HomeMaticConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription desc)
Called by the HomeMatic driver to determine whether this
DeviceHandler wants to control the device from the
DeviceDescription. |
protected String |
getEventResourceName(HmDevice device,
org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription keyChannel) |
void |
setup(HmDevice parent,
org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription desc,
Map<String,Map<String,org.ogema.drivers.homematic.xmlrpc.ll.api.ParameterDescription<?>>> paramSets)
Called by the HomeMatic driver after the DeviceHandler returned true
from an
DeviceHandler.accept(org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription) call. |
getConnectionpublic KeyChannel(HomeMaticConnection conn)
public boolean accept(org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription desc)
DeviceHandlerDeviceDescription.desc - HomeMatic device (or channel) description.public void setup(HmDevice parent, org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription desc, Map<String,Map<String,org.ogema.drivers.homematic.xmlrpc.ll.api.ParameterDescription<?>>> paramSets)
DeviceHandlerDeviceHandler.accept(org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription) call.
The DeviceDescription will be the same as the one used in the accept call.
The device parameter will always be the OGEMA resource associated with
the main HomeMatic device, even if setup is called for a channel, since
additional OGEMA resources should be created on this resource.
paramSets parameter contains all available Paramsets as
named by the device description (DeviceDescription.getParamsets()).
Each paramSet map contains the available parameter names as keys
along with their ParameterDescription.parent - OGEMA resource representing the main HomeMatic device.desc - Description for the HomeMatic device or channel.paramSets - Parameter sets available for this logical device.Copyright © 2018. All rights reserved.