Class IoShelly3EmImpl

java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.io.shelly.shelly3em.IoShelly3EmImpl
All Implemented Interfaces:
OpenemsComponent, DigitalOutput, IoShelly3Em, ElectricityMeter, TimedataProvider, org.osgi.service.event.EventHandler

public class IoShelly3EmImpl extends AbstractOpenemsComponent implements IoShelly3Em, DigitalOutput, ElectricityMeter, OpenemsComponent, TimedataProvider, org.osgi.service.event.EventHandler
  • Constructor Details

    • IoShelly3EmImpl

      public IoShelly3EmImpl()
  • Method Details

    • activate

      protected void activate(org.osgi.service.component.ComponentContext context, io.openems.edge.io.shelly.shelly3em.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
    • 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.
    • getMeterType

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