Class IoShellyPlusPlugsImpl

java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.io.shelly.shellyplusplugs.IoShellyPlusPlugsImpl
All Implemented Interfaces:
OpenemsComponent, DigitalOutput, IoShellyPlusPlugs, ElectricityMeter, SinglePhaseMeter, TimedataProvider, org.osgi.service.event.EventHandler

public class IoShellyPlusPlugsImpl extends AbstractOpenemsComponent implements IoShellyPlusPlugs, DigitalOutput, SinglePhaseMeter, ElectricityMeter, OpenemsComponent, TimedataProvider, org.osgi.service.event.EventHandler
  • Constructor Details

    • IoShellyPlusPlugsImpl

      public IoShellyPlusPlugsImpl()
  • Method Details

    • activate

      protected void activate(org.osgi.service.component.ComponentContext context, io.openems.edge.io.shelly.shellyplusplugs.Config config)
    • deactivate

      protected void deactivate()
      Description copied from class: AbstractOpenemsComponent
      Handles @Deactivate of implementations. Prints log output.
      Overrides:
      deactivate in class AbstractOpenemsComponent
    • digitalOutputChannels

      public BooleanWriteChannel[] digitalOutputChannels()
      Description copied from interface: DigitalOutput
      Gets all Output Channels.
      Specified by:
      digitalOutputChannels in interface DigitalOutput
      Returns:
      an array of Channels
    • debugLog

      public String debugLog()
      Description copied from interface: OpenemsComponent
      Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.
      Specified by:
      debugLog in interface OpenemsComponent
      Returns:
      the debug log output
    • handleEvent

      public void handleEvent(org.osgi.service.event.Event event)
      Specified by:
      handleEvent in interface org.osgi.service.event.EventHandler
    • getMeterType

      public MeterType getMeterType()
      Description copied from interface: ElectricityMeter
      Gets the type of this Meter.
      Specified by:
      getMeterType in interface ElectricityMeter
      Returns:
      the MeterType
    • getPhase

      public SinglePhase getPhase()
      Description copied from interface: SinglePhaseMeter
      Gets the Phase this Meter is connected to.
      Specified by:
      getPhase in interface SinglePhaseMeter
      Returns:
      the Phase
    • getTimedata

      public Timedata getTimedata()
      Description copied from interface: TimedataProvider
      Gets the Timedata service.
      Specified by:
      getTimedata in interface TimedataProvider
      Returns:
      the service or null if it is not (yet) available.