public class PMSwitchDevice extends AbstractDeviceHandler
HM-ES-PMSw1-Pl device. Does not do any HomeMatic
communication itself, but relies on PowerMeterChannel and
SwitchChannel and only aggregates the resources created by these
handlers into an OGEMA SingleSwitchBox.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
conn| Constructor and Description |
|---|
PMSwitchDevice(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 boolean |
performSwitchBoxSetup(HmDevice dev) |
void |
setup(HmDevice pmswitch,
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. |
protected org.ogema.core.resourcemanager.ResourceStructureListener |
subChannelListener(HmDevice dev) |
getConnectionpublic PMSwitchDevice(HomeMaticConnection conn)
public boolean accept(org.ogema.drivers.homematic.xmlrpc.ll.api.DeviceDescription desc)
DeviceHandlerDeviceDescription.desc - HomeMatic device (or channel) description.protected org.ogema.core.resourcemanager.ResourceStructureListener subChannelListener(HmDevice dev)
public void setup(HmDevice pmswitch, 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.pmswitch - OGEMA resource representing the main HomeMatic device.desc - Description for the HomeMatic device or channel.paramSets - Parameter sets available for this logical device.protected boolean performSwitchBoxSetup(HmDevice dev)
Copyright © 2018. All rights reserved.