Class FeneconHomeBatteryImpl

    • Field Detail

      • cm

        protected cm

        protected static final java.util.function.Consumer<Channel<java.lang.Integer>> UPDATE_NUMBER_OF_TOWERS_AND_MODULES_CALLBACK
        Callback for Channels to recalculate the number of towers and modules. Unfortunately the battery may report too small wrong values in the beginning, so we need to recalculate on every change.
    • Constructor Detail

      • FeneconHomeBatteryImpl

        public FeneconHomeBatteryImpl()
    • Method Detail

      • handleEvent

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

        public java.lang.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
      • getModbusSlaveTable

        public ModbusSlaveTable getModbusSlaveTable​(AccessMode accessMode)
        Description copied from interface: ModbusSlave
        Gets the Modbus-Slave-Table for this OpenEMS-Component.
        Specified by:
        getModbusSlaveTable in interface ModbusSlave
        accessMode - filters the Modbus-Records that should be shown
        the Modbus-Slave-Table
      • setStartStop

        public void setStartStop​(StartStop value)
        Description copied from interface: StartStoppable
        Starts or stops the device or service represented by this OpenEMS Component.
        Specified by:
        setStartStop in interface StartStoppable
        value - target StartStop state
      • buildSerialNumber

        protected static java.lang.String buildSerialNumber​(java.lang.String prefix,
                                                            java.lang.Integer value)
        Build the serial number with prefix.
        prefix - the serial number prefix
        value - the serial number
        The serial number