Class 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, config)
    • deactivate

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

      public BooleanWriteChannel[] digitalOutputChannels()
      Description copied from interface: DigitalOutput
      Gets all Output Channels.
      Specified by:
      digitalOutputChannels in interface DigitalOutput
      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
      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
      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
      the Phase
    • getTimedata

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